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

◆ GetElements()

IEnumerable< XElement > System.Xml.Linq.XContainer.GetElements ( XName name)
inlineprivateinherited

Definition at line 1082 of file XContainer.cs.

1083 {
1085 if (i == null)
1086 {
1087 yield break;
1088 }
1089 do
1090 {
1091 i = i.next;
1092 if (i is XElement xElement && (name == null || xElement.name == name))
1093 {
1094 yield return xElement;
1095 }
1096 }
1097 while (i.parent == this && i != content);
1098 }

References System.Xml.Linq.XNode.XNode(), System.Xml.Linq.XContainer.content, and System.Xml.Dictionary.

Referenced by System.Xml.Linq.XContainer.Elements(), and System.Xml.Linq.XContainer.Elements().