Use non-inlineable overload for rare CompareOrdinalIgnoreCase path (#17492)
authorJan Kotas <jkotas@microsoft.com>
Tue, 10 Apr 2018 11:56:33 +0000 (04:56 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Apr 2018 11:56:33 +0000 (04:56 -0700)
This fixes regression introduced in #17237.

src/mscorlib/shared/System/String.Comparison.cs

index 2a8be32..32951b4 100644 (file)
@@ -317,7 +317,7 @@ namespace System
                         return CompareOrdinalIgnoreCaseHelper(strA, strB);
                     }
 #endif
-                    return CompareInfo.CompareOrdinalIgnoreCase(strA, strB);
+                    return CompareInfo.CompareOrdinalIgnoreCase(strA, 0, strA.Length, strB, 0, strB.Length);
 
                 default:
                     throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));