With reference to this question why does the below code always returns true? [ c# Language ]
String a= "hello";
String b= "hello";
if(a==b)
Console.WriteLine("Is it really reference type?");
Just want an explanation as to why here they behave as Value types and not reference types. Is there any MSDN documentation on this OR should I just memorize this exception OR is this completely logical but i'm not getting it?
Detailed explanation appreciated.