I\'m wondering what the correct way to compare two characters ignoring case that will work for all cultures. Also, is Comparer.Default the best way
Comparer.Default
You could try:
class Test{ static int Compare(char t, char p){ return string.Compare(t.ToString(), p.ToString(), StringComparison.CurrentCultureIgnoreCase); } }
But I doubt this is the "optimal" way to do it, but I'm not all of the cases you need to be checking...