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

◆ GetObjectData()

void System.Xml.Xsl.Runtime.XmlQueryStaticData.GetObjectData ( out byte[] data,
out Type[] ebTypes )
inline

Definition at line 152 of file XmlQueryStaticData.cs.

153 {
155 XmlQueryDataWriter xmlQueryDataWriter = new XmlQueryDataWriter(memoryStream);
156 xmlQueryDataWriter.Write7BitEncodedInt(0);
158 if (_whitespaceRules == null)
159 {
160 xmlQueryDataWriter.Write(0);
161 }
162 else
163 {
166 {
168 }
169 }
170 if (_names == null)
171 {
172 xmlQueryDataWriter.Write(0);
173 }
174 else
175 {
176 xmlQueryDataWriter.Write(_names.Length);
177 string[] names = _names;
178 foreach (string value in names)
179 {
181 }
182 }
183 if (_prefixMappingsList == null)
184 {
185 xmlQueryDataWriter.Write(0);
186 }
187 else
188 {
191 foreach (StringPair[] array in prefixMappingsList)
192 {
193 xmlQueryDataWriter.Write(array.Length);
194 StringPair[] array2 = array;
195 for (int k = 0; k < array2.Length; k++)
196 {
197 StringPair stringPair = array2[k];
198 xmlQueryDataWriter.Write(stringPair.Left);
199 xmlQueryDataWriter.Write(stringPair.Right);
200 }
201 }
202 }
203 if (_filters == null)
204 {
205 xmlQueryDataWriter.Write(0);
206 }
207 else
208 {
209 xmlQueryDataWriter.Write(_filters.Length);
210 Int32Pair[] filters = _filters;
211 for (int l = 0; l < filters.Length; l++)
212 {
213 Int32Pair int32Pair = filters[l];
214 xmlQueryDataWriter.Write7BitEncodedInt(int32Pair.Left);
215 xmlQueryDataWriter.Write7BitEncodedInt(int32Pair.Right);
216 }
217 }
218 if (_types == null)
219 {
220 xmlQueryDataWriter.Write(0);
221 }
222 else
223 {
224 xmlQueryDataWriter.Write(_types.Length);
225 XmlQueryType[] types = _types;
226 foreach (XmlQueryType type in types)
227 {
228 XmlQueryTypeFactory.Serialize(xmlQueryDataWriter, type);
229 }
230 }
231 if (_collations == null)
232 {
233 xmlQueryDataWriter.Write(0);
234 }
235 else
236 {
237 xmlQueryDataWriter.Write(_collations.Length);
238 XmlCollation[] collations = _collations;
239 foreach (XmlCollation xmlCollation in collations)
240 {
242 }
243 }
244 if (_globalNames == null)
245 {
246 xmlQueryDataWriter.Write(0);
247 }
248 else
249 {
250 xmlQueryDataWriter.Write(_globalNames.Length);
251 string[] globalNames = _globalNames;
252 foreach (string value2 in globalNames)
253 {
255 }
256 }
257 if (_earlyBound == null)
258 {
259 xmlQueryDataWriter.Write(0);
260 ebTypes = null;
261 }
262 else
263 {
264 xmlQueryDataWriter.Write(_earlyBound.Length);
265 ebTypes = new Type[_earlyBound.Length];
266 int num2 = 0;
267 EarlyBoundInfo[] earlyBound = _earlyBound;
268 foreach (EarlyBoundInfo earlyBoundInfo in earlyBound)
269 {
270 xmlQueryDataWriter.Write(earlyBoundInfo.NamespaceUri);
271 ebTypes[num2++] = earlyBoundInfo.EarlyBoundType;
272 }
273 }
274 xmlQueryDataWriter.Dispose();
275 data = memoryStream.ToArray();
276 }
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
void GetObjectData(XmlQueryDataWriter writer)
readonly XmlWriterSettings _defaultWriterSettings
readonly IList< WhitespaceRule > _whitespaceRules

References System.Xml.Xsl.Runtime.XmlQueryStaticData._collations, System.Xml.Xsl.Runtime.XmlQueryStaticData._defaultWriterSettings, System.Xml.Xsl.Runtime.XmlQueryStaticData._earlyBound, System.Xml.Xsl.Runtime.XmlQueryStaticData._filters, System.Xml.Xsl.Runtime.XmlQueryStaticData._globalNames, System.Xml.Xsl.Runtime.XmlQueryStaticData._names, System.Xml.Xsl.Runtime.XmlQueryStaticData._prefixMappingsList, System.Xml.Xsl.Runtime.XmlQueryStaticData._types, System.Xml.Xsl.Runtime.XmlQueryStaticData._whitespaceRules, System.array, System.Xml.Dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.GetObjectData(), System.Xml.XmlWriterSettings.GetObjectData(), System.Xml.Xsl.XmlQueryTypeFactory.Serialize(), System.type, and System.value.