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

◆ Cleanup()

void System.Xml.Schema.SchemaCollectionPreprocessor.Cleanup ( XmlSchema schema)
inlineprivate

Definition at line 82 of file SchemaCollectionPreprocessor.cs.

83 {
84 if (schema.IsProcessing)
85 {
86 return;
87 }
89 for (int i = 0; i < schema.Includes.Count; i++)
90 {
91 XmlSchemaExternal xmlSchemaExternal = (XmlSchemaExternal)schema.Includes[i];
92 if (xmlSchemaExternal.Schema != null)
93 {
95 }
96 if (xmlSchemaExternal is XmlSchemaRedefine)
97 {
98 XmlSchemaRedefine xmlSchemaRedefine = xmlSchemaExternal as XmlSchemaRedefine;
99 xmlSchemaRedefine.AttributeGroups.Clear();
100 xmlSchemaRedefine.Groups.Clear();
101 xmlSchemaRedefine.SchemaTypes.Clear();
102 }
103 }
104 schema.Attributes.Clear();
105 schema.AttributeGroups.Clear();
106 schema.SchemaTypes.Clear();
107 schema.Elements.Clear();
108 schema.Groups.Clear();
109 schema.Notations.Clear();
110 schema.Ids.Clear();
111 schema.IdentityConstraints.Clear();
112 schema.IsProcessing = false;
113 }

References System.Xml.Schema.SchemaCollectionPreprocessor.Cleanup(), System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.Xml.Dictionary.

Referenced by System.Xml.Schema.SchemaCollectionPreprocessor.Cleanup(), and System.Xml.Schema.SchemaCollectionPreprocessor.Execute().