45
Possible Duplicate:
Differences in string compare methods in C#
In .NET there are many string comparison methods, I just want to confirm which one is the best to use considering performance.
string.Equals()
string.Compare()
string.CompareTo()
string.CompareOrdinal()
string.ReferenceEquals()
if (str1 == str2)