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

◆ DeepClone()

XmlSchema System.Xml.Schema.XmlSchema.DeepClone ( )
inlinepackage

Definition at line 599 of file XmlSchema.cs.

600 {
601 XmlSchema xmlSchema = new XmlSchema();
609 for (int i = 0; i < _items.Count; i++)
610 {
611 XmlSchemaObject item = ((_items[i] is XmlSchemaComplexType xmlSchemaComplexType) ? xmlSchemaComplexType.Clone(this) : ((_items[i] is XmlSchemaElement xmlSchemaElement) ? xmlSchemaElement.Clone(this) : ((!(_items[i] is XmlSchemaGroup xmlSchemaGroup)) ? _items[i].Clone() : xmlSchemaGroup.Clone(this))));
612 xmlSchema.Items.Add(item);
613 }
614 for (int j = 0; j < _includes.Count; j++)
615 {
616 XmlSchemaExternal item2 = (XmlSchemaExternal)_includes[j].Clone();
618 }
619 xmlSchema.Namespaces = base.Namespaces;
621 return xmlSchema;
622 }
XmlSchemaForm _attributeFormDefault
Definition XmlSchema.cs:17
XmlSchemaObjectCollection _includes
Definition XmlSchema.cs:29
XmlSchemaObjectCollection _items
Definition XmlSchema.cs:31
XmlSchemaDerivationMethod _finalDefault
Definition XmlSchema.cs:23
XmlSchemaObjectCollection Includes
Definition XmlSchema.cs:164
XmlSchemaDerivationMethod _blockDefault
Definition XmlSchema.cs:21
XmlSchemaForm _elementFormDefault
Definition XmlSchema.cs:19

References System.Xml.Schema.XmlSchema._attributeFormDefault, System.Xml.Schema.XmlSchema._blockDefault, System.Xml.Schema.XmlSchema._elementFormDefault, System.Xml.Schema.XmlSchema._finalDefault, System.Xml.Schema.XmlSchema._includes, System.Xml.Schema.XmlSchema._isPreprocessed, System.Xml.Schema.XmlSchema._items, System.Xml.Schema.XmlSchema._targetNs, System.Xml.Schema.XmlSchema._version, System.Xml.Schema.XmlSchemaObjectCollection.Add(), System.Xml.Schema.XmlSchema.BaseUri, System.Xml.Schema.XmlSchema.Clone(), System.Xml.Schema.XmlSchemaObjectCollection.Clone(), System.Collections.CollectionBase.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchema.Includes, and System.item.