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

◆ Remove() [2/2]

XmlSchema System.Xml.Schema.XmlSchemaSet.Remove ( XmlSchema schema,
bool forceCompile )
inlinepackage

Definition at line 855 of file XmlSchemaSet.cs.

856 {
857 if (schema == null)
858 {
859 throw new ArgumentNullException("schema");
860 }
862 {
863 if (_schemas.ContainsKey(schema.SchemaId))
864 {
865 if (forceCompile)
866 {
869 }
870 _schemas.Remove(schema.SchemaId);
871 if (schema.BaseUri != null)
872 {
874 }
876 if (Schemas(targetNamespace).Count == 0)
877 {
879 }
880 if (forceCompile)
881 {
882 _isCompiled = false;
883 _compileAll = true;
884 }
885 return schema;
886 }
887 }
888 return null;
889 }
virtual void Remove(object key)
virtual void Remove(object key)
virtual bool ContainsKey(object key)
void RemoveSchemaFromGlobalTables(XmlSchema schema)
string GetTargetNamespace(XmlSchema schema)
readonly Hashtable _targetNamespaces
void RemoveSchemaFromCaches(XmlSchema schema)
readonly Hashtable _schemaLocations
readonly SortedList _schemas

References System.Xml.Schema.XmlSchemaSet._compileAll, System.Xml.Schema.XmlSchemaSet._isCompiled, System.Xml.Schema.XmlSchemaSet._schemaLocations, System.Xml.Schema.XmlSchemaSet._schemas, System.Xml.Schema.XmlSchemaSet._targetNamespaces, System.Collections.SortedList.ContainsKey(), System.Xml.Schema.XmlSchemaSet.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaSet.GetTargetNamespace(), System.Xml.Schema.XmlSchemaSet.InternalSyncObject, System.Collections.SortedList.Remove(), System.Collections.Hashtable.Remove(), System.Xml.Schema.XmlSchemaSet.RemoveSchemaFromCaches(), System.Xml.Schema.XmlSchemaSet.RemoveSchemaFromGlobalTables(), and System.Xml.Schema.XmlSchemaSet.Schemas().