How Does .NET Compiler Compare Two String?

Posted by Pankaj on Stack Overflow See other posts from Stack Overflow or by Pankaj
Published on 2010-04-12T09:55:11Z Indexed on 2010/04/12 10:03 UTC
Read the original article Hit count: 262

Filed under:
|

string a="I am comparing 2 string"; string b="I am comparing 2 string"; if(a==b) return true; else return false;

How does a .NET compiler compare two strings? Is string work like a struct or like an int?

© Stack Overflow or respective owner

Related posts about string-compare

Related posts about c#