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

◆ ImportDerivedTypes()

override void System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypes ( XmlQualifiedName baseName)
inlinepackage

Definition at line 365 of file XmlSchemaImporter.cs.

366 {
367 foreach (XmlSchema schema in base.Schemas)
368 {
369 if (base.Schemas.IsReference(schema) || XmlSchemas.IsDataSet(schema))
370 {
371 continue;
372 }
373 XmlSchemas.Preprocess(schema);
374 foreach (object value in schema.SchemaTypes.Values)
375 {
377 {
379 if (xmlSchemaType.DerivedFrom == baseName && base.TypesInUse[xmlSchemaType.Name, schema.TargetNamespace] == null)
380 {
381 ImportType(xmlSchemaType.QualifiedName, typeof(TypeMapping), null, TypeFlags.CanBeElementValue, addref: false);
382 }
383 }
384 }
385 }
386 }
TypeMapping ImportType(XmlQualifiedName name, Type desiredMappingType, Type baseType, TypeFlags flags, bool addref)

References System.Xml.Serialization.XmlSchemaImporter.ImportType(), System.Xml.Serialization.XmlSchemas.IsDataSet(), System.Xml.Serialization.XmlSchemas.Preprocess(), System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.

Referenced by System.Xml.Serialization.XmlSchemaImporter.ImportArrayMapping(), and System.Xml.Serialization.XmlSchemaImporter.ImportType().