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

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

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

Definition at line 174 of file Extensions.cs.

174 : XContainer
175 {
176 if (source == null)
177 {
178 throw new ArgumentNullException("source");
179 }
180 if (!(name != null))
181 {
182 return XElement.EmptySequence;
183 }
184 return GetElements(source, name);
185 }

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