Last updated 5 years ago
Was this helpful?
Yes.
CompareTo executes according to CultureInfo, Equals — without.
CompareTo
Equals
An example: the string "ß" (, \u00df) and "ss" will be equal by CompareTo in German CultreInfo.
"ß"
"ss"
The == operator works like the String.Equals method.
==
String.Equals