[Serializable]
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- internal sealed class CultureAwareComparer : StringComparer
+ public sealed class CultureAwareComparer : StringComparer
{
private readonly CompareInfo _compareInfo; // Do not rename (binary serialization)
private readonly bool _ignoreCase; // Do not rename (binary serialization)
[Serializable]
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
- internal class OrdinalComparer : StringComparer
+ public class OrdinalComparer : StringComparer
{
private readonly bool _ignoreCase; // Do not rename (binary serialization)
{
if (obj == null)
{
-#if CORECLR
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.obj);
-#else
- throw new ArgumentNullException(nameof(obj));
-#endif
}
Contract.EndContractBlock();
{
if (obj == null)
{
-#if CORECLR
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.obj);
-#else
- throw new ArgumentNullException(nameof(obj));
-#endif
}
return obj.GetHashCode();
}
}
}
- [Serializable]
+ [Serializable]
internal sealed class OrdinalIgnoreCaseComparer : OrdinalComparer, ISerializable
{
public OrdinalIgnoreCaseComparer() : base(true)
{
if (obj == null)
{
-#if CORECLR
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.obj);
-#else
- throw new ArgumentNullException(nameof(obj));
-#endif
}
return TextInfo.GetHashCodeOrdinalIgnoreCase(obj);
}