diff --git a/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs b/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs index 6cf726c1..67ba7454 100644 --- a/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs +++ b/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs @@ -1349,7 +1349,7 @@ namespace Newtonsoft.Json.Converters string elementPrefix = MiscellaneousUtils.GetPrefix(propertyName); - if (propertyName.StartsWith("@")) + if (propertyName.StartsWith("@", StringComparison.Ordinal)) { string attributeName = propertyName.Substring(1); string attributeValue = reader.Value.ToString(); @@ -1777,4 +1777,4 @@ namespace Newtonsoft.Json.Converters } } -#endif \ No newline at end of file +#endif