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

◆ NodesIterator< T >()

static IEnumerable< XNode > System.Xml.Linq.Extensions.NodesIterator< T > ( IEnumerable< T > source)
inlinestaticprivate
Type Constraints
T :XContainer 

Definition at line 82 of file Extensions.cs.

82 : XContainer
83 {
84 foreach (T root in source)
85 {
86 if (root == null)
87 {
88 continue;
89 }
90 XNode i = root.LastNode;
91 if (i != null)
92 {
93 do
94 {
95 i = i.next;
96 yield return i;
97 }
98 while (i.parent == root && i != root.content);
99 }
100 }
101 }

References System.source.