Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 1f665aa

Browse files
committed
Use non-inlineable overload for rare CompareOrdinalIgnoreCase path (#17492)
This fixes regression introduced in #17237. Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
1 parent b1be362 commit 1f665aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/src/CoreLib/System/String.Comparison.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public static int Compare(string strA, string strB, StringComparison comparisonT
317317
return CompareOrdinalIgnoreCaseHelper(strA, strB);
318318
}
319319
#endif
320-
return CompareInfo.CompareOrdinalIgnoreCase(strA, strB);
320+
return CompareInfo.CompareOrdinalIgnoreCase(strA, 0, strA.Length, strB, 0, strB.Length);
321321

322322
default:
323323
throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));

0 commit comments

Comments
 (0)