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

◆ WriteDerivedTypes()

bool System.Xml.Serialization.ReflectionXmlSerializationReader.WriteDerivedTypes ( out object o,
StructMapping mapping,
XmlQualifiedName xsiType,
string defaultNamespace,
bool checkType,
bool isNullable )
inlineprivate

Definition at line 1626 of file ReflectionXmlSerializationReader.cs.

1627 {
1628 for (StructMapping structMapping = mapping.DerivedMappings; structMapping != null; structMapping = structMapping.NextDerivedMapping)
1629 {
1630 if (QNameEqual(xsiType, structMapping.TypeName, structMapping.Namespace, defaultNamespace))
1631 {
1632 o = WriteStructMethod(structMapping, isNullable, checkType, defaultNamespace);
1633 return true;
1634 }
1635 if (WriteDerivedTypes(out o, structMapping, xsiType, defaultNamespace, checkType, isNullable))
1636 {
1637 return true;
1638 }
1639 }
1640 o = null;
1641 return false;
1642 }
bool WriteDerivedTypes(out object o, StructMapping mapping, XmlQualifiedName xsiType, string defaultNamespace, bool checkType, bool isNullable)
object WriteStructMethod(StructMapping mapping, bool isNullable, bool checkType, string defaultNamespace)
bool QNameEqual(XmlQualifiedName xsiType, string name, string ns, string defaultNamespace)

References System.Xml.Serialization.ReflectionXmlSerializationReader.QNameEqual(), System.Xml.Serialization.ReflectionXmlSerializationReader.WriteDerivedTypes(), and System.Xml.Serialization.ReflectionXmlSerializationReader.WriteStructMethod().

Referenced by System.Xml.Serialization.ReflectionXmlSerializationReader.WriteDerivedTypes(), and System.Xml.Serialization.ReflectionXmlSerializationReader.WriteLiteralStructMethod().