diff --git a/Src/Newtonsoft.Json/Linq/JTokenReader.cs b/Src/Newtonsoft.Json/Linq/JTokenReader.cs index eb50635b..0c541371 100644 --- a/Src/Newtonsoft.Json/Linq/JTokenReader.cs +++ b/Src/Newtonsoft.Json/Linq/JTokenReader.cs @@ -341,8 +341,8 @@ namespace Newtonsoft.Json.Linq if (string.IsNullOrEmpty(path)) return _initialPath; - if (_initialPath.EndsWith("]", StringComparison.OrdinalIgnoreCase) - || path.StartsWith("[", StringComparison.OrdinalIgnoreCase)) + if (_initialPath.EndsWith("]", StringComparison.Ordinal) + || path.StartsWith("[", StringComparison.Ordinal)) path = _initialPath + path; else path = _initialPath + "." + path; @@ -352,4 +352,4 @@ namespace Newtonsoft.Json.Linq } } } -} \ No newline at end of file +}