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

◆ AddSchemaToSet()

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

Definition at line 757 of file XmlSchemaSet.cs.

758 {
759 _schemas.Add(schema.SchemaId, schema);
762 {
764 }
765 if (_schemaForSchema == null && targetNamespace == "http://www.w3.org/2001/XMLSchema" && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null)
766 {
768 }
769 for (int i = 0; i < schema.ImportedSchemas.Count; i++)
770 {
771 XmlSchema xmlSchema = (XmlSchema)schema.ImportedSchemas[i];
772 if (!_schemas.ContainsKey(xmlSchema.SchemaId))
773 {
774 _schemas.Add(xmlSchema.SchemaId, xmlSchema);
775 }
778 {
780 }
781 if (_schemaForSchema == null && targetNamespace == "http://www.w3.org/2001/XMLSchema" && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null)
782 {
784 }
785 }
786 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
virtual void Add(object key, object? value)
virtual bool ContainsKey(object key)
string GetTargetNamespace(XmlSchema schema)
readonly Hashtable _targetNamespaces
readonly SortedList _schemas

References System.Xml.Schema.XmlSchemaSet._schemaForSchema, System.Xml.Schema.XmlSchemaSet._schemas, System.Xml.Schema.XmlSchemaSet._targetNamespaces, System.Collections.SortedList.Add(), System.Collections.Hashtable.Add(), System.Collections.SortedList.ContainsKey(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaSet.GetTargetNamespace(), and System.Xml.Schema.DatatypeImplementation.QnAnyType.

Referenced by System.Xml.Schema.XmlSchemaSet.Add(), and System.Xml.Schema.XmlSchemaSet.IsSchemaLoaded().