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

◆ Ancestors< T >() [2/2]

static IEnumerable< XElement > System.Xml.Linq.Extensions.Ancestors< T > ( this IEnumerable< T?> source,
XName? name )
inlinestatic
Type Constraints
T :XNode 

Definition at line 38 of file Extensions.cs.

38 : XNode
39 {
40 if (source == null)
41 {
42 throw new ArgumentNullException("source");
43 }
44 if (!(name != null))
45 {
46 return XElement.EmptySequence;
47 }
48 return GetAncestors(source, name, self: false);
49 }

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