When comparing two strings in c# for equality, what is the difference between InvariantCulture and Ordinal comparison?
9 s
It does matter, for example – there is a thing called character expansion
var s1 = "Strasse";
var s2 = "Straße";
s1.Equals(s2, StringComparison.Ordinal); //false
s1.Equals(s2, StringComparison.InvariantCulture); //true
With InvariantCulture
the ß character gets expanded to ss.