As far as I know a string in C# is a reference type.
So in the following code \'a\' should be equal to \"Hi\", but it still keeps its value which is \"Hello\". Why?<
The line b = "Hi"; changes which string b references. a still references "Hello".
b = "Hi";
b
a
"Hello"
string a = "Hello"; // Set a to reference the string "Hello" string b = a; // Set b to reference the same string as a b = "Hi"; // Set b to reference the string "Hi"