String s1 = \"Hello\"; String s2 = \"Hello\";
Here s1, s2 are different but then why ReferenceEquals() is returning true
You also can use String.Copy(String str) static method to create strings that will be different objects
String.Copy(String str)
String s1 = "Hello"; String s2 = string.Copy("Hello");
then s1 and s2 will be referencing different objects.