Fixes #2372 - variable typos (#2465)

This commit is contained in:
David Omid
2021-02-19 10:37:30 +13:00
committed by GitHub
parent 5a35c77d09
commit 0a56633b6c
2 changed files with 5 additions and 5 deletions
@@ -1217,7 +1217,7 @@ _____'propertyName': NaN,
{
JsonWriter.State[][] stateArray = JsonWriter.BuildStateArray();
var valueStates = JsonWriter.StateArrayTempate[7];
var valueStates = JsonWriter.StateArrayTemplate[7];
foreach (JsonToken valueToken in GetValues(typeof(JsonToken)))
{
+4 -4
View File
@@ -62,7 +62,7 @@ namespace Newtonsoft.Json
// array that gives a new state based on the current state an the token being written
private static readonly State[][] StateArray;
internal static readonly State[][] StateArrayTempate = new[]
internal static readonly State[][] StateArrayTemplate = new[]
{
// Start PropertyName ObjectStart Object ArrayStart Array ConstructorStart Constructor Closed Error
//
@@ -78,9 +78,9 @@ namespace Newtonsoft.Json
internal static State[][] BuildStateArray()
{
List<State[]> allStates = StateArrayTempate.ToList();
State[] errorStates = StateArrayTempate[0];
State[] valueStates = StateArrayTempate[7];
List<State[]> allStates = StateArrayTemplate.ToList();
State[] errorStates = StateArrayTemplate[0];
State[] valueStates = StateArrayTemplate[7];
EnumInfo enumValuesAndNames = EnumUtils.GetEnumValuesAndNames(typeof(JsonToken));