Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このcsharpコードがあり、vb.netに変換したい:
var item = (from l in List2 select l).FirstOrDefault(); if(item != null) {...}
vb に変換:
Dim item = (from l in List2 select l).FirstOrDefault() If item <> Nothing Then ... End If
しかし、アイテムにエラーが発生<> なし
試す
If item IsNot Nothing Then