No.
It depends from current CultureInfo. An example:
var a = "i"; var b = "I"; Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("tr-TR"); Console.WriteLine( string.Compare(a.ToUpper(), b.ToUpper())); //'1' Console.WriteLine( string.Compare(a, b, StringComparison.OrdinalIgnoreCase)); //'0'
The Turkey Test
Problem
Last updated 5 years ago