text: public static int CompareIgnoreCase(string a, string b){for (int i = 0; i < a.Length && i < b.Length; i++){int d = ToLowerCase(a[i]) - ToLowerCase(b[i]);if (d != 0){return d;}}return a.Length - b.Length;}