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

◆ XAttribute() [1/2]

System.Xml.Linq.XAttribute.XAttribute ( XName name,
object value )
inline

Definition at line 92 of file XAttribute.cs.

93 {
94 if (name == null)
95 {
96 throw new ArgumentNullException("name");
97 }
98 if (value == null)
99 {
100 throw new ArgumentNullException("value");
101 }
102 string stringValue = XContainer.GetStringValue(value);
104 this.name = name;
106 }
static void ValidateAttribute(XName name, string value)

References System.Xml.Dictionary, System.Xml.Linq.XContainer.GetStringValue(), System.Xml.Linq.XAttribute.name, System.Xml.Linq.XAttribute.ValidateAttribute(), and System.Xml.Linq.XAttribute.value.