I have below code in C# Console Application:
string a = "1";
string b = a;
a = "2";
Console.WriteLine(b);
I heard that in C# the string type works as reference type but in upper code the variable b still shows me 1 and why it does not show me 2 !?