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

◆ ImportDerivedTypeMapping() [2/2]

XmlTypeMapping System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypeMapping ( XmlQualifiedName name,
Type? baseType,
bool baseTypeCanBeIndirect )
inline

Definition at line 64 of file XmlSchemaImporter.cs.

65 {
66 ElementAccessor elementAccessor = ImportElement(name, typeof(TypeMapping), baseType);
67 if (elementAccessor.Mapping is StructMapping)
68 {
70 }
71 else if (baseType != null)
72 {
73 if (!(elementAccessor.Mapping is ArrayMapping))
74 {
76 }
77 elementAccessor.Mapping = ((ArrayMapping)elementAccessor.Mapping).TopLevelMapping;
79 }
80 return new XmlTypeMapping(base.Scope, elementAccessor);
81 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlBadBaseElement
Definition SR.cs:1636
Definition SR.cs:7
void MakeDerived(StructMapping structMapping, Type baseType, bool baseTypeCanBeIndirect)
ElementAccessor ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType)

References System.Xml.Dictionary, System.SR.Format(), System.Xml.Serialization.XmlSchemaImporter.ImportElement(), System.Xml.Serialization.SchemaImporter.MakeDerived(), and System.SR.XmlBadBaseElement.