Does the C# compiler or .NET CLR do any clever memory optimisation of string literals/constants? I could swear I\'d heard of the concept of \"string internalisation\" so th
Yes it does optimize string literals. One simple example where you can see that:
string s1="A"; string s2="A"; object.ReferenceEquals(s1,s2); //true