static StandardClassLibraryFormatterHelper()
 {
     keyValuePairName = new byte[][]
     {
         JsonWriter.GetEncodedPropertyNameWithBeginObject("Key"),
         JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Value"),
     };
     keyValuePairAutomata = new AutomataDictionary
     {
         { JsonWriter.GetEncodedPropertyNameWithoutQuotation("Key"), 0 },
         { JsonWriter.GetEncodedPropertyNameWithoutQuotation("Value"), 1 },
     };
 }
Example #2
0
 static CollectionFormatterHelper()
 {
     groupingName = new byte[][]
     {
         JsonWriter.GetEncodedPropertyNameWithBeginObject("Key"),
         JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Elements"),
     };
     groupingAutomata = new AutomataDictionary
     {
         { JsonWriter.GetEncodedPropertyNameWithoutQuotation("Key"), 0 },
         { JsonWriter.GetEncodedPropertyNameWithoutQuotation("Elements"), 1 },
     };
 }
		static ValueTupleFormatterHelper()
		{
			nameCache1 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
			};
			dictionary1 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
			};
			nameCache2 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
			};
			dictionary2 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
			};
			nameCache3 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item3"),
			};
			dictionary3 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item3"), 2 },
			};
			nameCache4 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item3"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item4"),
			};
			dictionary4 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item3"), 2 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item4"), 3 },
			};
			nameCache5 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item3"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item4"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item5"),
			};
			dictionary5 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item3"), 2 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item4"), 3 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item5"), 4 },
			};
			nameCache6 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item3"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item4"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item5"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item6"),
			};
			dictionary6 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item3"), 2 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item4"), 3 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item5"), 4 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item6"), 5 },
			};
			nameCache7 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item3"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item4"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item5"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item6"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item7"),
			};
			dictionary7 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item3"), 2 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item4"), 3 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item5"), 4 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item6"), 5 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item7"), 6 },
			};
			nameCache8 = new byte[][]
			{
				JsonWriter.GetEncodedPropertyNameWithBeginObject("Item1"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item2"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item3"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item4"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item5"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item6"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Item7"),
				JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator("Rest"),
			};
			dictionary8 = new AutomataDictionary
			{
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item1"), 0 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item2"), 1 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item3"), 2 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item4"), 3 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item5"), 4 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item6"), 5 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Item7"), 6 },
				{JsonWriter.GetEncodedPropertyNameWithoutQuotation("Rest"), 7 },
			};
		}