Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SchemaNamespaceManager.cs
Go to the documentation of this file.
1namespace System.Xml.Schema;
2
4{
5 private readonly XmlSchemaObject _node;
6
11
12 public override string LookupNamespace(string prefix)
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 }
31
32 public override string LookupPrefix(string ns)
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 }
47}
override string LookupNamespace(string prefix)