Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XmlFormatWriterMethod

MethodInfo System.Runtime.Serialization.PrimitiveDataContract.XmlFormatWriterMethod
getpackageinherited

Definition at line 85 of file PrimitiveDataContract.cs.

86 {
87 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
88 get
89 {
91 {
92 if (base.UnderlyingType.IsValueType)
93 {
94 _helper.XmlFormatWriterMethod = typeof(XmlWriterDelegator).GetMethod(WriteMethodName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, new Type[3]
95 {
96 base.UnderlyingType,
97 typeof(XmlDictionaryString),
98 typeof(XmlDictionaryString)
99 });
100 }
101 else
102 {
103 _helper.XmlFormatWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, new Type[4]
104 {
105 typeof(XmlWriterDelegator),
106 base.UnderlyingType,
107 typeof(XmlDictionaryString),
108 typeof(XmlDictionaryString)
109 });
110 }
111 }
113 }
114 }
readonly PrimitiveDataContractCriticalHelper _helper