diff options
author | Ben Adams <thundercat@illyriad.co.uk> | 2018-08-31 16:19:10 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-08-31 08:19:10 -0700 |
commit | f597da2dd522ca1ca7293ef83798aae86840e588 (patch) | |
tree | 96b7065e9068aebfec1af532692826a864da7bdb | |
parent | d82fc2062925ced3fb5c479ff8db7ef61cc4f290 (diff) | |
download | coreclr-f597da2dd522ca1ca7293ef83798aae86840e588.tar.gz coreclr-f597da2dd522ca1ca7293ef83798aae86840e588.tar.bz2 coreclr-f597da2dd522ca1ca7293ef83798aae86840e588.zip |
IndexOf(char, Ordinal) use fast path (#19788)
-rw-r--r-- | src/System.Private.CoreLib/shared/System/String.Searching.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/String.Searching.cs b/src/System.Private.CoreLib/shared/System/String.Searching.cs index 56549d8f17..857d64eec2 100644 --- a/src/System.Private.CoreLib/shared/System/String.Searching.cs +++ b/src/System.Private.CoreLib/shared/System/String.Searching.cs @@ -55,7 +55,7 @@ namespace System return CompareInfo.Invariant.IndexOf(this, value, GetCaseCompareOfComparisonCulture(comparisonType)); case StringComparison.Ordinal: - return CompareInfo.Invariant.IndexOf(this, value, CompareOptions.Ordinal); + return IndexOf(value); case StringComparison.OrdinalIgnoreCase: return CompareInfo.Invariant.IndexOf(this, value, CompareOptions.OrdinalIgnoreCase); |