Empty string: Difference between revisions
Content added Content deleted
(→Visual Basic .NET#In depth: Clarified) |
m (→Visual Basic .NET#In depth: Clarified) |
||
Line 2,235: | Line 2,235: | ||
'#Is operator |
'#Is operator |
||
' The Is operator tests for reference equality. However, which strings are interned is a CLR implementation |
' The Is operator tests for reference equality. However, which strings are interned is a CLR implementation |
||
' detail and may be unreliable when comparing non-empty strings. The equivalent in C# would be (object)s == |
' detail and may be unreliable when comparing non-empty strings. The equivalent in C# would be (object)s == "". |
||
' Note that there is no such operator as Object.op_Equality(Object, Object): the use of the == operator for |
' Note that there is no such operator as Object.op_Equality(Object, Object): the use of the == operator for |
||
' types of type Object is a C# language feature. |
' types of type Object is a C# language feature. |