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

◆ DescendantsAndSelf() [2/2]

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

Definition at line 152 of file Extensions.cs.

153 {
154 if (source == null)
155 {
156 throw new ArgumentNullException("source");
157 }
158 if (!(name != null))
159 {
160 return XElement.EmptySequence;
161 }
162 return GetDescendants(source, name, self: true);
163 }

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