G
Guest
Hi!
Is there a string pool in .NET like in Java? Is there any difference between
== and Equals() for string?
If I do the following:
string s1 = "hello";
string s2 = "hello";
Will s2 reference the same object as s1?
Thanks.
Is there a string pool in .NET like in Java? Is there any difference between
== and Equals() for string?
If I do the following:
string s1 = "hello";
string s2 = "hello";
Will s2 reference the same object as s1?
Thanks.