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

◆ EndProcessProperty()

void Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EndProcessProperty ( object newObject,
JsonReader reader,
JsonObjectContract contract,
int initialDepth,
JsonProperty property,
JsonSerializerInternalReader::PropertyPresence presence,
bool setDefaultValue )
inlineprivate

Definition at line 1134 of file JsonSerializerInternalReader.cs.

1135 {
1136 if (presence == JsonSerializerInternalReader.PropertyPresence.None)
1137 {
1138 Required? required = property._required;
1139 string propertyName;
1140 if (required != null)
1141 {
1142 if (presence == JsonSerializerInternalReader.PropertyPresence.None)
1143 {
1144 goto IL_0054;
1145 }
1146 if (required == null)
1147 {
1148 }
1150 propertyName = property._propertyName;
1151 string text = "Required property '{0}' expects a value but got null.".FormatWith(invariantCulture, propertyName);
1152 JsonSerializationException ex = JsonSerializationException.Create(reader, text);
1153 }
1154 Required? <ItemRequired>k__BackingField = contract.<ItemRequired>k__BackingField;
1155 JsonPropertyCollection <Properties>k__BackingField = contract.<Properties>k__BackingField;
1156 while (propertyName != null)
1157 {
1158 }
1159 IL_0054:
1160 if (!property.<Ignored>k__BackingField)
1161 {
1162 if (property.<PropertyContract>k__BackingField == null)
1163 {
1164 Type propertyType = property._propertyType;
1165 JsonContract contractSafe = this.GetContractSafe(propertyType);
1166 property.<PropertyContract>k__BackingField = contractSafe;
1167 }
1168 DefaultValueHandling? <DefaultValueHandling>k__BackingField = property.<DefaultValueHandling>k__BackingField;
1169 DefaultValueHandling defaultValueHandling = this.Serializer._defaultValueHandling;
1170 if (property.<Writable>k__BackingField)
1171 {
1172 IValueProvider <ValueProvider>k__BackingField = property.<ValueProvider>k__BackingField;
1173 object resolvedDefaultValue = property.GetResolvedDefaultValue();
1175 Type propertyType2 = property._propertyType;
1176 JsonContract <PropertyContract>k__BackingField = property.<PropertyContract>k__BackingField;
1177 return;
1178 }
1179 }
1180 }
1181 }
class f__AnonymousType0<< Count > j__TPar
DefaultValueHandling _defaultValueHandling
static CultureInfo InvariantCulture

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