Empty string: Difference between revisions

Content added Content deleted
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 == String.Empty.
' 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.