In a lot of places I’m using the == operator to compare the string, now I know this considers casing… Is there anyway I can adjust the culture settings to avoid this or do I have to go to every line of code and change it to
string.Compare(a,b,StringComparison.CurrentCultureIgnoreCase)
How about a string extension method?:
Then you can just use
As an esoteric alternative, you could use Regex instead of String.Compare: