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

◆ GetDescendantNodes()

IEnumerable< XNode > System.Xml.Linq.XContainer.GetDescendantNodes ( bool self)
inlinepackageinherited

Definition at line 1013 of file XContainer.cs.

1014 {
1015 if (self)
1016 {
1017 yield return this;
1018 }
1019 XNode i = this;
1020 while (true)
1021 {
1023 if (i is XContainer xContainer && (firstNode = xContainer.FirstNode) != null)
1024 {
1025 i = firstNode;
1026 }
1027 else
1028 {
1029 while (i != null && i != this && i == i.parent.content)
1030 {
1031 i = i.parent;
1032 }
1033 if (i == null || i == this)
1034 {
1035 break;
1036 }
1037 i = i.next;
1038 }
1039 yield return i;
1040 }
1041 }

References System.Xml.Dictionary.

Referenced by System.Xml.Linq.XContainer.DescendantNodes(), and System.Xml.Linq.XElement.DescendantNodesAndSelf().