我有一個字符串的數組,我通過他們循環,但字符串可能是空的,所以我想這一點:如果不忽略的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