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

◆ Attribute()

XAttribute? System.Xml.Linq.XElement.Attribute ( XName name)
inline

Definition at line 218 of file XElement.cs.

219 {
220 XAttribute xAttribute = lastAttr;
221 if (xAttribute != null)
222 {
223 do
224 {
225 xAttribute = xAttribute.next;
226 if (xAttribute.name == name)
227 {
228 return xAttribute;
229 }
230 }
231 while (xAttribute != lastAttr);
232 }
233 return null;
234 }

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

Referenced by MS.Internal.Xml.Linq.ComponentModel.XElementAttributePropertyDescriptor.GetValue().