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

◆ XmlFormatContentWriterMethod

MethodInfo System.Runtime.Serialization.PrimitiveDataContract.XmlFormatContentWriterMethod
getpackageinherited

Definition at line 116 of file PrimitiveDataContract.cs.

117 {
118 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
119 get
120 {
122 {
123 if (base.UnderlyingType.IsValueType)
124 {
125 _helper.XmlFormatContentWriterMethod = typeof(XmlWriterDelegator).GetMethod(WriteMethodName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, new Type[1] { base.UnderlyingType });
126 }
127 else
128 {
129 _helper.XmlFormatContentWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, new Type[2]
130 {
131 typeof(XmlWriterDelegator),
132 base.UnderlyingType
133 });
134 }
135 }
137 }
138 }
readonly PrimitiveDataContractCriticalHelper _helper