由于我的现在工作需要,我从两年的C#转回VB.net。在C#中,我可以使用简写方式测试字符串变量的null或false值,例如:
if(!String.IsNullOrEmpty(blah))
{
...code goes here
}
然而,我对如何在VB.net中实现此功能有些困惑。
if Not String.IsNullOrEmpty(blah) then
...code goes here
end if
上述语句是否意味着字符串不为空或非空?
Not
关键字是否像C#的!
运算符一样操作?