Comparing strings using the CompareInfo class in .NET C#
August 18, 2017 Leave a comment
It’s important to be aware of the cultural settings in a globalised application when comparing strings. The CompareInfo class and the CompareOptions enumeration provide a useful way to compare strings based on specific cultures.
One way to get hold of the CompareInfo class belonging to a specific culture is through the CultureInfo class: