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

◆ LookupPrefix()

override string System.Xml.Schema.SchemaNamespaceManager.LookupPrefix ( string ns)
inlinevirtual

Reimplemented from System.Xml.XmlNamespaceManager.

Definition at line 32 of file SchemaNamespaceManager.cs.

33 {
34 if (ns == "http://www.w3.org/XML/1998/namespace")
35 {
36 return "xml";
37 }
39 {
40 if (xmlSchemaObject.Namespaces.TryLookupPrefix(ns, out var prefix))
41 {
42 return prefix;
43 }
44 }
45 return null;
46 }

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