Possible Duplicate:
C#: String.Equals vs. ==
Hi to all.
Some time someone told me that you should never compare strings with == and that you should use string.equals(), but it refers to java.
¿What is the diference beteen == and string.equals in .NET c#?
no difference, it's just an operator overload. for strings it's internally the same thing. however, you don't want to get in a habit of using == for comparing objects and that's why it's not recommended to use it for strings as well.
In C# there's no difference for strings.