@@ -1217,7 +1217,7 @@ _____'propertyName': NaN,
|
|||||||
{
|
{
|
||||||
JsonWriter.State[][] stateArray = JsonWriter.BuildStateArray();
|
JsonWriter.State[][] stateArray = JsonWriter.BuildStateArray();
|
||||||
|
|
||||||
var valueStates = JsonWriter.StateArrayTempate[7];
|
var valueStates = JsonWriter.StateArrayTemplate[7];
|
||||||
|
|
||||||
foreach (JsonToken valueToken in GetValues(typeof(JsonToken)))
|
foreach (JsonToken valueToken in GetValues(typeof(JsonToken)))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ namespace Newtonsoft.Json
|
|||||||
// array that gives a new state based on the current state an the token being written
|
// array that gives a new state based on the current state an the token being written
|
||||||
private static readonly State[][] StateArray;
|
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
|
// Start PropertyName ObjectStart Object ArrayStart Array ConstructorStart Constructor Closed Error
|
||||||
//
|
//
|
||||||
@@ -78,9 +78,9 @@ namespace Newtonsoft.Json
|
|||||||
|
|
||||||
internal static State[][] BuildStateArray()
|
internal static State[][] BuildStateArray()
|
||||||
{
|
{
|
||||||
List<State[]> allStates = StateArrayTempate.ToList();
|
List<State[]> allStates = StateArrayTemplate.ToList();
|
||||||
State[] errorStates = StateArrayTempate[0];
|
State[] errorStates = StateArrayTemplate[0];
|
||||||
State[] valueStates = StateArrayTempate[7];
|
State[] valueStates = StateArrayTemplate[7];
|
||||||
|
|
||||||
EnumInfo enumValuesAndNames = EnumUtils.GetEnumValuesAndNames(typeof(JsonToken));
|
EnumInfo enumValuesAndNames = EnumUtils.GetEnumValuesAndNames(typeof(JsonToken));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user