Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlQueryItemSequence.cs
Go to the documentation of this file.
3
5
7public sealed class XmlQueryItemSequence : XmlQuerySequence<XPathItem>
8{
9 public new static readonly XmlQueryItemSequence Empty = new XmlQueryItemSequence();
10
12 {
13 if (seq != null)
14 {
15 seq.Clear();
16 return seq;
17 }
18 return new XmlQueryItemSequence();
19 }
20
22 {
23 if (seq != null)
24 {
25 seq.Clear();
26 seq.Add(item);
27 return seq;
28 }
29 return new XmlQueryItemSequence(item);
30 }
31
33 {
34 }
35
37 : base(capacity)
38 {
39 }
40
42 : base(1)
43 {
45 }
46
47 public void AddClone(XPathItem item)
48 {
49 if (item.IsNode)
50 {
51 Add(((XPathNavigator)item).Clone());
52 }
53 else
54 {
55 Add(item);
56 }
57 }
58}
static XmlQueryItemSequence CreateOrReuse(XmlQueryItemSequence seq, XPathItem item)
static XmlQueryItemSequence CreateOrReuse(XmlQueryItemSequence seq)