terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Deserialize()

object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize ( JsonReader reader,
Type objectType,
bool checkAdditionalContent )
inline

Definition at line 58 of file JsonSerializerInternalReader.cs.

59 {
60 JsonContract contractSafe;
61 bool isNullable;
62 if (reader != null)
63 {
64 contractSafe = this.GetContractSafe(objectType);
65 if (contractSafe != null)
66 {
67 if (contractSafe.<Converter>k__BackingField != null)
68 {
69 goto IL_0037;
70 }
71 JsonSerializer serializer = this.Serializer;
72 Type <UnderlyingType>k__BackingField = contractSafe.<UnderlyingType>k__BackingField;
73 if (serializer.GetMatchingConverter(<UnderlyingType>k__BackingField) != null)
74 {
75 goto IL_0037;
76 }
77 JsonConverter <InternalConverter>k__BackingField = contractSafe.<InternalConverter>k__BackingField;
78 }
79 long num = 0L;
80 IL_0037:
81 if (reader == null)
82 {
83 }
84 if (num != 0L)
85 {
86 object obj;
87 return obj;
88 }
89 if (contractSafe != null)
90 {
91 isNullable = contractSafe.IsNullable;
92 if (isNullable)
93 {
94 }
95 }
96 }
97 if (!isNullable)
98 {
99 }
101 Type <UnderlyingType>k__BackingField2 = contractSafe.<UnderlyingType>k__BackingField;
102 string text = "No JSON content found and type '{0}' is not nullable.".FormatWith(invariantCulture, <UnderlyingType>k__BackingField2);
103 JsonSerializationException ex = JsonSerializationException.Create(reader, text);
104 throw new OutOfMemoryException();
105 }
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture

References Newtonsoft.Json.JsonSerializationException.Create(), Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, System.L, System.obj, Newtonsoft.Json.Serialization.JsonSerializerInternalBase.Serializer, and System.text.

Referenced by Newtonsoft.Json.Serialization.JsonSerializerProxy.DeserializeInternal().