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