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

◆ NamespaceList() [2/2]

System.Xml.Schema.NamespaceList.NamespaceList ( string namespaces,
string targetNamespace )
inline

Definition at line 42 of file NamespaceList.cs.

43 {
45 namespaces = namespaces.Trim();
46 if (namespaces == "##any" || namespaces.Length == 0)
47 {
48 _type = ListType.Any;
49 return;
50 }
51 if (namespaces == "##other")
52 {
53 _type = ListType.Other;
54 return;
55 }
56 _type = ListType.Set;
57 _set = new Hashtable();
58 string[] array = XmlConvert.SplitString(namespaces);
59 for (int i = 0; i < array.Length; i++)
60 {
61 if (array[i] == "##local")
62 {
63 _set[string.Empty] = string.Empty;
64 continue;
65 }
66 if (array[i] == "##targetNamespace")
67 {
69 continue;
70 }
71 XmlConvert.ToUri(array[i]);
72 _set[array[i]] = array[i];
73 }
74 }

References System.Xml.Schema.NamespaceList._set, System.Xml.Schema.NamespaceList._targetNamespace, System.Xml.Schema.NamespaceList._type, System.array, System.Xml.Dictionary, System.Xml.XmlConvert.SplitString(), and System.Xml.XmlConvert.ToUri().