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

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

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

Definition at line 121 of file Extensions.cs.

121 : XContainer
122 {
123 if (source == null)
124 {
125 throw new ArgumentNullException("source");
126 }
127 if (!(name != null))
128 {
129 return XElement.EmptySequence;
130 }
131 return GetDescendants(source, name, self: false);
132 }

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