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

◆ SetPropertySettingsFromAttributes()

void Newtonsoft.Json.Serialization.DefaultContractResolver.SetPropertySettingsFromAttributes ( JsonProperty property,
object attributeProvider,
string name,
Type declaringType,
MemberSerialization memberSerialization,
[Out] bool allowNonPublicAccess )
inlineprivate

Definition at line 784 of file DefaultContractResolver.cs.

785 {
786 if (!true)
787 {
788 }
789 DataContractAttribute dataContractAttribute = JsonTypeReflector.GetDataContractAttribute(declaringType);
790 if (attributeProvider != null)
791 {
792 }
793 long num = 0L;
794 JsonPropertyAttribute attribute = JsonTypeReflector.GetAttribute<JsonPropertyAttribute>(attributeProvider);
795 JsonRequiredAttribute attribute2 = JsonTypeReflector.GetAttribute<JsonRequiredAttribute>(attributeProvider);
796 if ((attribute != null && attribute.<PropertyName>k__BackingField != null) || num != 0L)
797 {
798 }
799 property.<UnderlyingName>k__BackingField = name;
800 int num2;
801 bool? itemIsReference;
802 if (attribute == null)
803 {
804 while (num2 == 0)
805 {
806 }
808 return;
809 }
810 DefaultValueHandling? defaultValueHandling = attribute._defaultValueHandling;
811 property.<DefaultValueHandling>k__BackingField = defaultValueHandling;
812 if (attribute2 != null)
813 {
814 num2 = 1;
816 }
817 property.<HasMemberAttribute>k__BackingField = num2 != 0;
818 if (defaultValueHandling == null)
819 {
820 }
822 Type <ItemConverterType>k__BackingField;
823 if (JsonTypeReflector.GetAttribute<JsonIgnoreAttribute>(attributeProvider) == null)
824 {
825 if (defaultValueHandling == null)
826 {
827 }
828 if (JsonTypeReflector.GetAttribute<JsonExtensionDataAttribute>(attributeProvider) == null)
829 {
830 if (bindingFlags == BindingFlags.Default)
831 {
832 }
833 NonSerializedAttribute attribute3 = JsonTypeReflector.GetAttribute<NonSerializedAttribute>(<ItemConverterType>k__BackingField);
834 return;
835 }
836 }
837 int num3 = 1;
838 property.<Ignored>k__BackingField = num3 != 0;
839 if (num3 == 0)
840 {
841 }
842 JsonConverter jsonConverter = JsonTypeReflector.GetJsonConverter(attributeProvider);
844 JsonConverter jsonConverter2 = JsonTypeReflector.GetJsonConverter(attributeProvider);
845 property.<MemberConverter>k__BackingField = jsonConverter2;
847 if (attribute4 != null)
848 {
849 int num4 = 1;
852 }
853 if (attribute == null)
854 {
855 return;
856 }
857 NullValueHandling? nullValueHandling = attribute._nullValueHandling;
858 ReferenceLoopHandling? referenceLoopHandling = attribute._referenceLoopHandling;
859 ObjectCreationHandling? objectCreationHandling = attribute._objectCreationHandling;
860 TypeNameHandling? typeNameHandling = attribute._typeNameHandling;
861 bool? isReference = attribute._isReference;
862 itemIsReference = attribute._itemIsReference;
863 <ItemConverterType>k__BackingField = attribute.<ItemConverterType>k__BackingField;
864 if (<ItemConverterType>k__BackingField != null)
865 {
866 object[] <ItemConverterParameters>k__BackingField = attribute.<ItemConverterParameters>k__BackingField;
867 if (itemIsReference == null)
868 {
869 }
870 JsonConverter jsonConverter3 = JsonTypeReflector.CreateJsonConverterInstance(<ItemConverterType>k__BackingField, <ItemConverterParameters>k__BackingField);
871 return;
872 }
873 long num5 = 0L;
874 property.<ItemConverter>k__BackingField = num5;
875 ReferenceLoopHandling? itemReferenceLoopHandling = attribute._itemReferenceLoopHandling;
876 TypeNameHandling? itemTypeNameHandling = attribute._itemTypeNameHandling;
878 allowNonPublicAccess.m_value = bindingFlags != BindingFlags.Default;
879 }
class f__AnonymousType0<< Count > j__TPar
BindingFlags< DefaultMembersSearchFlags > k__BackingField

References Newtonsoft.Json.JsonPropertyAttribute._defaultValueHandling, Newtonsoft.Json.JsonPropertyAttribute._isReference, Newtonsoft.Json.JsonPropertyAttribute._itemIsReference, Newtonsoft.Json.JsonPropertyAttribute._itemReferenceLoopHandling, Newtonsoft.Json.JsonPropertyAttribute._itemTypeNameHandling, Newtonsoft.Json.JsonPropertyAttribute._nullValueHandling, Newtonsoft.Json.JsonPropertyAttribute._objectCreationHandling, Newtonsoft.Json.JsonPropertyAttribute._referenceLoopHandling, Newtonsoft.Json.JsonPropertyAttribute._typeNameHandling, Newtonsoft.Json.Serialization.JsonTypeReflector.CreateJsonConverterInstance(), Newtonsoft.Json.Serialization.DefaultContractResolver.DefaultMembersSearchFlags, Newtonsoft.Json.Serialization.JsonTypeReflector.GetDataContractAttribute(), Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonConverter(), j__TPar, Newtonsoft.Json.Serialization.DefaultContractResolver.k__BackingField, System.L, System.name, and Newtonsoft.Json.PropertyName.