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

◆ ReadIfNullOrRefMethod

MethodInfo System.Runtime.Serialization.XmlFormatGeneratorStatics.ReadIfNullOrRefMethod
staticgetpackage

Definition at line 546 of file XmlFormatGeneratorStatics.cs.

547 {
548 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
549 get
550 {
551 if (s_readIfNullOrRefMethod == null)
552 {
553 s_readIfNullOrRefMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadIfNullOrRef", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, new Type[3]
554 {
555 typeof(XmlReaderDelegator),
556 typeof(Type),
557 typeof(bool)
558 });
559 }
561 }
562 }

Referenced by System.Runtime.Serialization.Json.JsonFormatReaderGenerator.CriticalHelper.ReadValue(), and System.Runtime.Serialization.XmlFormatReaderGenerator.CriticalHelper.ReadValue().