public override int Compare(string x, string y)
{
if (object.ReferenceEquals(x, y))
{
return 0;
}
if (x == null)
{
return -1;
}
if (y == null)
{
return 1;
}
if (this._ignoreCase)
{
return TextInfo.CompareOrdinalIgnoreCase(x, y);
}
return string.CompareOrdinal(x, y);
}