“CaseInComparison” (Solution)

Answer

No.

Explanation

It depends from current CultureInfo. An example:
1
var a = "i";
2
var b = "I";
3
Thread.CurrentThread.CurrentCulture =
4
CultureInfo.CreateSpecificCulture("tr-TR");
5
Console.WriteLine(
6
string.Compare(a.ToUpper(), b.ToUpper())); //'1'
7
Console.WriteLine(
8
string.Compare(a, b, StringComparison.OrdinalIgnoreCase)); //'0'
Copied!

Links

Problem
Copy link