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

◆ AncestorsAndSelf() [2/2]

static IEnumerable< XElement > System.Xml.Linq.Extensions.AncestorsAndSelf ( this IEnumerable< XElement?> source,
XName? name )
inlinestatic

Definition at line 60 of file Extensions.cs.

61 {
62 if (source == null)
63 {
64 throw new ArgumentNullException("source");
65 }
66 if (!(name != null))
67 {
68 return XElement.EmptySequence;
69 }
70 return GetAncestors(source, name, self: true);
71 }

References System.Xml.Linq.XElement.EmptySequence, and System.source.