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

◆ Attributes() [2/2]

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

Definition at line 16 of file Extensions.cs.

17 {
18 if (source == null)
19 {
20 throw new ArgumentNullException("source");
21 }
22 if (!(name != null))
23 {
24 return XAttribute.EmptySequence;
25 }
26 return GetAttributes(source, name);
27 }
static IEnumerable< XAttribute > GetAttributes(IEnumerable< XElement > source, XName name)

References System.Xml.Linq.XAttribute.EmptySequence, System.Xml.Linq.Extensions.GetAttributes(), and System.source.