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

◆ Count

override int System.Xml.XmlElementList.Count
get

Definition at line 33 of file XmlElementList.cs.

34 {
35 get
36 {
37 if (_empty)
38 {
39 return 0;
40 }
41 if (_matchCount < 0)
42 {
43 int num = 0;
45 XmlNode n = _rootNode;
46 while ((n = GetMatchingNode(n, bNext: true)) != null)
47 {
48 num++;
49 }
51 {
52 return num;
53 }
54 _matchCount = num;
55 }
56 return _matchCount;
57 }
58 }
XmlNode GetMatchingNode(XmlNode n, bool bNext)
readonly XmlNode _rootNode