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

◆ InitializeContract()

void Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract ( JsonContract contract)
inlineprivate

Definition at line 417 of file DefaultContractResolver.cs.

418 {
419 JsonContainerAttribute cachedAttribute;
420 for (;;)
421 {
422 Type nonNullableUnderlyingType = contract.NonNullableUnderlyingType;
423 if (!true)
424 {
425 }
426 cachedAttribute = JsonTypeReflector.GetCachedAttribute<JsonContainerAttribute>(nonNullableUnderlyingType);
427 if (cachedAttribute != null)
428 {
429 break;
430 }
431 Type nonNullableUnderlyingType2 = contract.NonNullableUnderlyingType;
432 long num;
433 if (num == 0L)
434 {
435 }
436 DataContractAttribute dataContractAttribute = JsonTypeReflector.GetDataContractAttribute(nonNullableUnderlyingType2);
437 while (dataContractAttribute == null)
438 {
439 }
440 if (dataContractAttribute.isReference)
441 {
442 return;
443 }
444 }
445 bool? isReference = cachedAttribute._isReference;
446 contract.<IsReference>k__BackingField = isReference;
447 Type nonNullableUnderlyingType3 = contract.NonNullableUnderlyingType;
449 Type nonNullableUnderlyingType4 = contract.NonNullableUnderlyingType;
450 bool isInstantiable = contract.IsInstantiable;
451 JsonConverter jsonConverter;
452 contract.<InternalConverter>k__BackingField = jsonConverter;
453 if (isInstantiable)
454 {
455 Type createdType = contract._createdType;
456 if (!isInstantiable)
457 {
458 }
460 bool flag2 = contract._createdType.IsValueType();
461 Type createdType2 = contract._createdType;
462 Type createdType3 = contract._createdType;
464 contract.<DefaultCreator>k__BackingField = func;
465 bool flag3 = createdType3.IsValueType();
466 long num = 0L;
467 return;
468 }
469 Type nonNullableUnderlyingType5 = contract.NonNullableUnderlyingType;
470 this.ResolveCallbackMethods(contract, nonNullableUnderlyingType5);
471 }
class f__AnonymousType0<< Count > j__TPar
BindingFlags< DefaultMembersSearchFlags > k__BackingField
static bool HasDefaultConstructor(Type t, bool nonPublic)

References Newtonsoft.Json.Serialization.JsonTypeReflector.GetDataContractAttribute(), Newtonsoft.Json.Utilities.ReflectionUtils.HasDefaultConstructor(), j__TPar, Newtonsoft.Json.Serialization.DefaultContractResolver.k__BackingField, System.L, and Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveCallbackMethods().