At Signs have no case.
Swapped in StringComparison.Ordinal for the literal comparison against @ since those are non-caseable. This is a micro-improvement, but still good practice.
This commit is contained in:
@@ -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
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user