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

◆ LookupNamespace()

override string System.Xml.Schema.SchemaNamespaceManager.LookupNamespace ( string prefix)
inlinevirtual

Reimplemented from System.Xml.XmlNamespaceManager.

Definition at line 12 of file SchemaNamespaceManager.cs.

13 {
14 if (prefix == "xml")
15 {
16 return "http://www.w3.org/XML/1998/namespace";
17 }
19 {
20 if (xmlSchemaObject.Namespaces.TryLookupNamespace(prefix, out var ns))
21 {
22 return ns;
23 }
24 }
25 if (prefix.Length != 0)
26 {
27 return null;
28 }
29 return string.Empty;
30 }

References System.Xml.Schema.SchemaNamespaceManager._node, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaObject.Parent, and System.prefix.