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

◆ ExportArrayMapping()

void System.Xml.Serialization.XmlSchemaExporter.ExportArrayMapping ( ArrayMapping mapping,
string ns,
XmlSchemaElement element )
inlineprivate

Definition at line 632 of file XmlSchemaExporter.cs.

633 {
634 ArrayMapping arrayMapping = mapping;
635 while (arrayMapping.Next != null)
636 {
638 }
640 if (xmlSchemaComplexType == null)
641 {
644 if (!mapping.IsAnonymousType)
645 {
648 }
649 if (!arrayMapping.IsAnonymousType)
650 {
652 }
655 if (xmlSchemaSequence.Items.Count > 0)
656 {
658 {
660 }
661 else
662 {
664 }
665 }
666 }
667 else
668 {
669 AddSchemaImport(mapping.Namespace, ns);
670 }
671 if (element != null)
672 {
673 if (mapping.IsAnonymousType)
674 {
676 }
677 else
678 {
679 element.SchemaTypeName = new XmlQualifiedName(xmlSchemaComplexType.Name, mapping.Namespace);
680 }
681 }
682 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
void AddSchemaImport(string ns, string referencingNs)
void AddSchemaItem(XmlSchemaObject item, string ns, string referencingNs)
void CheckForDuplicateType(TypeMapping mapping, string newNamespace)
void ExportElementAccessors(XmlSchemaGroupBase group, ElementAccessor[] accessors, bool repeats, bool valueTypeOptional, string ns)

References System.Xml.Serialization.XmlSchemaExporter._types, System.Collections.Hashtable.Add(), System.Xml.Serialization.XmlSchemaExporter.AddSchemaImport(), System.Xml.Serialization.XmlSchemaExporter.AddSchemaItem(), System.Xml.Serialization.XmlSchemaExporter.CheckForDuplicateType(), System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessors(), and System.Xml.Serialization.ArrayMapping.Next.

Referenced by System.Xml.Serialization.XmlSchemaExporter.ExportElementMapping(), System.Xml.Serialization.XmlSchemaExporter.ExportMapping(), and System.Xml.Serialization.XmlSchemaExporter.ExportRootIfNecessary().