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:
Marc Brooks
2014-05-14 17:14:45 -05:00
parent 017a38c65b
commit 16980374fd
@@ -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