Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StaticDataManager.cs
Go to the documentation of this file.
5
7
8internal sealed class StaticDataManager
9{
11
13
15
17
19
21
23
24 public string[] Names
25 {
26 get
27 {
28 if (_uniqueNames == null)
29 {
30 return null;
31 }
32 return _uniqueNames.ToArray();
33 }
34 }
35
37 {
38 get
39 {
40 if (_uniqueFilters == null)
41 {
42 return null;
43 }
44 return _uniqueFilters.ToArray();
45 }
46 }
47
49 {
50 get
51 {
52 if (_prefixMappingsList == null)
53 {
54 return null;
55 }
56 return _prefixMappingsList.ToArray();
57 }
58 }
59
60 public string[] GlobalNames
61 {
62 get
63 {
64 if (_globalNames == null)
65 {
66 return null;
67 }
68 return _globalNames.ToArray();
69 }
70 }
71
73 {
74 get
75 {
76 if (_earlyInfo != null)
77 {
78 return _earlyInfo.ToArray();
79 }
80 return null;
81 }
82 }
83
85 {
86 get
87 {
88 if (_uniqueXmlTypes == null)
89 {
90 return null;
91 }
92 return _uniqueXmlTypes.ToArray();
93 }
94 }
95
97 {
98 get
99 {
100 if (_uniqueCollations == null)
101 {
102 return null;
103 }
104 return _uniqueCollations.ToArray();
105 }
106 }
107
108 public int DeclareName(string name)
109 {
110 if (_uniqueNames == null)
111 {
113 }
114 return _uniqueNames.Add(name);
115 }
116
117 public int DeclareNameFilter(string locName, string nsUri)
118 {
119 if (_uniqueFilters == null)
120 {
122 }
124 }
125
127 {
128 StringPair[] array = new StringPair[list.Count];
129 for (int i = 0; i < list.Count; i++)
130 {
133 }
134 if (_prefixMappingsList == null)
135 {
137 }
139 return _prefixMappingsList.Count - 1;
140 }
141
142 public int DeclareGlobalValue(string name)
143 {
144 if (_globalNames == null)
145 {
147 }
149 _globalNames.Add(name);
150 return count;
151 }
152
153 public int DeclareEarlyBound(string namespaceUri, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type ebType)
154 {
155 if (_earlyInfo == null)
156 {
158 }
159 return _earlyInfo.Add(new EarlyBoundInfo(namespaceUri, ebType));
160 }
161
163 {
164 if (_uniqueXmlTypes == null)
165 {
167 }
168 return _uniqueXmlTypes.Add(type);
169 }
170
171 public int DeclareCollation(string collation)
172 {
173 if (_uniqueCollations == null)
174 {
176 }
178 }
179}
void Add(TKey key, TValue value)
int DeclarePrefixMappings(IList< QilNode > list)
UniqueList< XmlQueryType > _uniqueXmlTypes
UniqueList< XmlCollation > _uniqueCollations
int DeclareNameFilter(string locName, string nsUri)
int DeclareEarlyBound(string namespaceUri, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type ebType)
UniqueList< EarlyBoundInfo > _earlyInfo
static XmlCollation Create(string collationLiteral)