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

◆ BuildRefNamespaces()

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

Definition at line 235 of file SchemaCollectionPreprocessor.cs.

236 {
238 _referenceNamespaces.Add("http://www.w3.org/2001/XMLSchema", "http://www.w3.org/2001/XMLSchema");
239 _referenceNamespaces.Add(string.Empty, string.Empty);
240 for (int i = 0; i < schema.Includes.Count; i++)
241 {
242 if (schema.Includes[i] is XmlSchemaImport xmlSchemaImport)
243 {
244 string @namespace = xmlSchemaImport.Namespace;
245 if (@namespace != null && _referenceNamespaces[@namespace] == null)
246 {
247 _referenceNamespaces.Add(@namespace, @namespace);
248 }
249 }
250 }
251 if (schema.TargetNamespace != null && _referenceNamespaces[schema.TargetNamespace] == null)
252 {
253 _referenceNamespaces.Add(schema.TargetNamespace, schema.TargetNamespace);
254 }
255 }
void Add(TKey key, TValue value)
virtual void Add(object key, object? value)
Definition Hashtable.cs:676

References System.Xml.Schema.SchemaCollectionPreprocessor._referenceNamespaces, System.Collections.Hashtable.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.Xml.Dictionary.

Referenced by System.Xml.Schema.SchemaCollectionPreprocessor.Preprocess().