16 public override int Compare(
string x,
string y)
21 public override bool Equals(
string x,
string y)
27 if (x ==
null || y ==
null)
31 if (x.Length != y.Length)
44 return obj.GetHashCodeOrdinalIgnoreCase();
50 info.AddValue(
"_ignoreCase",
value:
true);
static bool EqualsIgnoreCase(ref char charA, ref char charB, int length)
override int Compare(string x, string y)
void GetObjectData(SerializationInfo info, StreamingContext context)
override bool Equals(string x, string y)
OrdinalIgnoreCaseComparer()
override int GetHashCode(string obj)
static readonly OrdinalIgnoreCaseComparer Instance
static void ThrowArgumentNullException(string name)