R
Rigga
Hi all,
I am wondering why string's are not true objects?.... Let me explain...
If i write the code
Dim x1 as String = "veg"
Dim x2 as String = "veg"
If x1 = x2 then
' i expect this code to be executed
End If
If x1 is x2 then
' i do not expect this code to be executed
End If
However the second lot of code is executed!
Is this correct behavior??? if so is it true then that strings are not true
objects?
Any thoughts would be appreciated!
Rigga.
I am wondering why string's are not true objects?.... Let me explain...
If i write the code
Dim x1 as String = "veg"
Dim x2 as String = "veg"
If x1 = x2 then
' i expect this code to be executed
End If
If x1 is x2 then
' i do not expect this code to be executed
End If
However the second lot of code is executed!
Is this correct behavior??? if so is it true then that strings are not true
objects?
Any thoughts would be appreciated!
Rigga.