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

◆ RemoveSchemaFromGlobalTables()

void System.Xml.Schema.XmlSchemaSet.RemoveSchemaFromGlobalTables ( XmlSchema schema)
inlineprivate

Definition at line 1133 of file XmlSchemaSet.cs.

1134 {
1135 if (_schemas.Count == 0)
1136 {
1137 return;
1138 }
1139 VerifyTables();
1140 foreach (XmlSchemaElement value in schema.Elements.Values)
1141 {
1142 XmlSchemaElement xmlSchemaElement2 = (XmlSchemaElement)elements[value.QualifiedName];
1143 if (xmlSchemaElement2 == value)
1144 {
1145 elements.Remove(value.QualifiedName);
1146 }
1147 }
1148 foreach (XmlSchemaAttribute value2 in schema.Attributes.Values)
1149 {
1150 XmlSchemaAttribute xmlSchemaAttribute2 = (XmlSchemaAttribute)attributes[value2.QualifiedName];
1152 {
1153 attributes.Remove(value2.QualifiedName);
1154 }
1155 }
1156 foreach (XmlSchemaType value3 in schema.SchemaTypes.Values)
1157 {
1158 XmlSchemaType xmlSchemaType2 = (XmlSchemaType)schemaTypes[value3.QualifiedName];
1159 if (xmlSchemaType2 == value3)
1160 {
1161 schemaTypes.Remove(value3.QualifiedName);
1162 }
1163 }
1164 }
XmlSchemaObjectTable elements
XmlSchemaObjectTable attributes
readonly SortedList _schemas
XmlSchemaObjectTable schemaTypes

References System.Xml.Schema.XmlSchemaSet._schemas, System.Xml.Schema.XmlSchemaSet.attributes, System.Collections.SortedList.Count, System.Xml.Schema.XmlSchemaSet.elements, System.Xml.Schema.XmlSchemaObjectTable.Remove(), System.Xml.Schema.XmlSchemaSet.schemaTypes, System.value, System.Collections.Generic.Dictionary< TKey, TValue >.Values, and System.Xml.Schema.XmlSchemaSet.VerifyTables().

Referenced by System.Xml.Schema.XmlSchemaSet.Remove(), and System.Xml.Schema.XmlSchemaSet.Reprocess().