为什么第一个 if 语句评估为真?我知道如果我使用“is”而不是“=”,那么它不会评估为真。如果我用“Foo”替换 String.Empty,它不会评估为真。String.Empty 和 "Foo" 都具有相同类型的 String,那么为什么一个评估为 true 而另一个不评估呢?
//this evaluates to true
If Nothing = String.Empty Then
End If
//this evaluates to false
If Nothing = "Foo" Then
End If