“CaseInComparison” (Solution)

Answer

No.

Explanation

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'

Problem

Last updated