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

◆ GetAttributes()

IEnumerable< XAttribute > System.Xml.Linq.XElement.GetAttributes ( XName name)
inlineprivate

Definition at line 1077 of file XElement.cs.

1078 {
1079 XAttribute a = lastAttr;
1080 if (a == null)
1081 {
1082 yield break;
1083 }
1084 do
1085 {
1086 a = a.next;
1087 if (name == null || a.name == name)
1088 {
1089 yield return a;
1090 }
1091 }
1092 while (a.parent == this && a != lastAttr);
1093 }

References System.Xml.Dictionary, System.Xml.Linq.XElement.lastAttr, and System.Xml.Linq.XElement.name.

Referenced by System.Xml.Linq.XElement.Attributes(), and System.Xml.Linq.XElement.Attributes().