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

◆ BuildRefNamespaces()

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

Definition at line 403 of file Preprocessor.cs.

404 {
406 _referenceNamespaces.Add("http://www.w3.org/2001/XMLSchema", "http://www.w3.org/2001/XMLSchema");
407 for (int i = 0; i < schema.Includes.Count; i++)
408 {
409 XmlSchemaExternal xmlSchemaExternal = (XmlSchemaExternal)schema.Includes[i];
410 if (xmlSchemaExternal is XmlSchemaImport)
411 {
412 XmlSchemaImport xmlSchemaImport = xmlSchemaExternal as XmlSchemaImport;
413 string text = xmlSchemaImport.Namespace;
414 if (text == null)
415 {
416 text = string.Empty;
417 }
418 if (_referenceNamespaces[text] == null)
419 {
421 }
422 }
423 }
424 string text2 = schema.TargetNamespace;
425 if (text2 == null)
426 {
427 text2 = string.Empty;
428 }
429 if (_referenceNamespaces[text2] == null)
430 {
432 }
433 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
readonly Hashtable _referenceNamespaces

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

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