Fix gethashcode for ordinal comparer (dotnet/coreclr#12267)
authorViktor Hofer <viktor.hofer@microsoft.com>
Wed, 14 Jun 2017 11:34:45 +0000 (13:34 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2017 11:34:45 +0000 (13:34 +0200)
Fix GetHashCode for ordinal comparer

Commit migrated from https://github.com/dotnet/coreclr/commit/905efa9828b0b02fcbfd339d155982aa4b36f8be

src/coreclr/src/mscorlib/shared/System/StringComparer.cs

index 755b1d9..6990378 100644 (file)
@@ -332,7 +332,7 @@ namespace System
                 throw new ArgumentNullException(nameof(obj));
 #endif
             }
-            return TextInfo.GetHashCodeOrdinalIgnoreCase(obj);
+            return obj.GetHashCode();
         }
 
         public void GetObjectData(SerializationInfo info, StreamingContext context)