“CaseInComparison” (Problem)
Are the following methods of comparison term a
andb
insensitive equivalent:
Console.WriteLine(
string.Compare(a.ToUpper(), b.ToUpper()));
Console.WriteLine(
string.Compare(a, b, StringComparison.OrdinalIgnoreCase));