Hi,
SECTION1:
writing like this:
string str3 = str1 + str2;
On viewing the above line in ILDASM.exe, and it s re-written in intermediate language as below:
System.String::Concat(string, string)
which means that Concat method of string class will be get called:
public static string Concat(string str0, string str1)
SECTION2:
similary, writing like this
if(str1 == str2)
On viewing the above line in
ILDASM.exe, and it s re-written in intermediate language as below:
bool [mscorlib]System.String::op_Equality(string,string)
( http://msdn.microsoft.com/en-us/library/system.string.op_equality.aspx )
which indicates that, below method of string class will get called:
public static bool operator ==(string a, string b) { }
Regards
Lokesh.