Possible Duplicate:
Are string.Equals() and == operator really same?
string class provides different methods for comparsion
- ==
string.Equals
string.Compare
what is the difference between == and Equals
with respect to the string class?
because Equals method is provide by the System.Object which compares the refernces of the objects