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

◆ PopulateObject()

object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject ( object newObject,
JsonReader reader,
JsonObjectContract contract,
JsonProperty member,
string id )
inlineprivate

Definition at line 1000 of file JsonSerializerInternalReader.cs.

1001 {
1002 this.OnDeserializing(reader, contract, newObject);
1003 bool hasRequiredOrDefaultValueProperties = contract.HasRequiredOrDefaultValueProperties;
1004 DefaultValueHandling defaultValueHandling = this.Serializer._defaultValueHandling;
1005 JsonPropertyCollection <Properties>k__BackingField;
1006 if (id == null)
1007 {
1008 <Properties>k__BackingField = contract.<Properties>k__BackingField;
1009 if (defaultValueHandling == DefaultValueHandling.Include)
1010 {
1011 }
1012 if (defaultValueHandling == DefaultValueHandling.Include)
1013 {
1014 }
1015 if (defaultValueHandling == DefaultValueHandling.Include)
1016 {
1017 }
1018 if (defaultValueHandling == DefaultValueHandling.Include)
1019 {
1020 }
1021 if (id == null)
1022 {
1023 goto IL_0041;
1024 }
1025 }
1026 this.AddReference(reader, id, newObject);
1027 IL_0041:
1028 JsonPropertyCollection <Properties>k__BackingField2 = contract.<Properties>k__BackingField;
1029 JsonProperty jsonProperty;
1030 if (jsonProperty != null && !jsonProperty.<Ignored>k__BackingField)
1031 {
1032 bool flag = this.ShouldDeserialize(reader, jsonProperty, newObject);
1033 JsonContract contractSafe;
1034 if (jsonProperty.<PropertyContract>k__BackingField == null)
1035 {
1036 Type propertyType = jsonProperty._propertyType;
1037 contractSafe = this.GetContractSafe(propertyType);
1038 jsonProperty.<PropertyContract>k__BackingField = contractSafe;
1039 }
1040 JsonConverter <MemberConverter>k__BackingField = jsonProperty.<MemberConverter>k__BackingField;
1041 JsonConverter converter = this.GetConverter(contractSafe, <MemberConverter>k__BackingField, contract, member);
1042 JsonContract <PropertyContract>k__BackingField = jsonProperty.<PropertyContract>k__BackingField;
1043 bool flag2 = this.SetPropertyValue(jsonProperty, converter, contract, member, reader, newObject);
1044 }
1045 if (this.TraceWriter != null)
1046 {
1047 ITraceWriter traceWriter = this.TraceWriter;
1049 Type <UnderlyingType>k__BackingField = contract.<UnderlyingType>k__BackingField;
1050 string text = "Could not find member '{0}' on {1}".FormatWith(invariantCulture, reader, <UnderlyingType>k__BackingField);
1051 }
1052 MissingMemberHandling missingMemberHandling = this.Serializer._missingMemberHandling;
1054 Type <UnderlyingType>k__BackingField2 = contract.<UnderlyingType>k__BackingField;
1055 string text2 = "Could not find member '{0}' on object of type '{1}'".FormatWith(invariantCulture2, reader, <UnderlyingType>k__BackingField2);
1056 JsonSerializationException ex = JsonSerializationException.Create(reader, text2);
1058 string text3 = "Unexpected end when setting {0}'s value.".FormatWith(invariantCulture3, reader);
1059 JsonSerializationException ex2 = JsonSerializationException.Create(reader, text3);
1060 this.ThrowUnexpectedEndException(reader, contract, newObject, "Unexpected end when deserializing object.");
1061 if (<Properties>k__BackingField != null)
1062 {
1063 }
1064 this.OnDeserialized(reader, contract, newObject);
1065 return newObject;
1066 }
class f__AnonymousType0<< Count > j__TPar
DefaultValueHandling _defaultValueHandling
MissingMemberHandling _missingMemberHandling
bool SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target)
JsonConverter GetConverter(JsonContract contract, JsonConverter memberConverter, JsonContainerContract containerContract, JsonProperty containerProperty)
void ThrowUnexpectedEndException(JsonReader reader, JsonContract contract, object currentObject, string message)
void AddReference(JsonReader reader, string id, object value)
bool ShouldDeserialize(JsonReader reader, JsonProperty property, object target)
void OnDeserializing(JsonReader reader, JsonContract contract, object value)
void OnDeserialized(JsonReader reader, JsonContract contract, object value)
static CultureInfo InvariantCulture

References Newtonsoft.Json.JsonSerializer._defaultValueHandling, Newtonsoft.Json.JsonSerializer._missingMemberHandling, Newtonsoft.Json.Serialization.JsonSerializerInternalReader.AddReference(), System.converter, Newtonsoft.Json.JsonSerializationException.Create(), Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(), Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetConverter(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, Newtonsoft.Json.Serialization.JsonSerializerInternalReader.OnDeserialized(), Newtonsoft.Json.Serialization.JsonSerializerInternalReader.OnDeserializing(), Newtonsoft.Json.Serialization.JsonSerializerInternalBase.Serializer, Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(), Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ShouldDeserialize(), System.text, Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ThrowUnexpectedEndException(), and Newtonsoft.Json.Serialization.JsonSerializerInternalBase.TraceWriter.