我有一个字符串数组,并且正在循环遍历它们,但是这些字符串可能为空,所以我正在尝试以下操作:
For Each Component As String In Components
If Component IsNot String.Empty Then
'Work your magic
End If
Next
但是如果 Component 是一个空字符串,逻辑仍然会触发。我也尝试过。
If Component <> "" Then
End If
同样的结果,那我错在哪里了?