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

◆ AncestorsAndSelf() [2/2]

IEnumerable< XElement > System.Xml.Linq.XElement.AncestorsAndSelf ( XName? name)
inline

Definition at line 209 of file XElement.cs.

210 {
211 if (!(name != null))
212 {
213 return EmptySequence;
214 }
215 return GetAncestors(name, self: true);
216 }
static IEnumerable< XElement > EmptySequence
Definition XElement.cs:29
IEnumerable< XElement > GetAncestors(XName name, bool self)
Definition XNode.cs:451

References System.Xml.Linq.XElement.EmptySequence, System.Xml.Linq.XNode.GetAncestors(), and System.Xml.Linq.XElement.name.