我有一个字符串的数组,我通过他们循环,但字符串可能是空的,所以我想这一点:如果不忽略的String.Empty空字符串 - VB.NET
For Each Component As String In Components
If Component IsNot String.Empty Then
'Work your magic
End If
Next
但是,如果组件是逻辑仍然触发的空字符串。我也试过
If Component <> "" Then
End If
具有相同的结果。那么我错过了什么?
只需添加完整性:假设Component为空字符串必须为假。它可以是非空字符串,也可以是Nothing。 – jeroenh 2010-08-11 19:33:45