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

◆ GetAttr()

static object System.Xml.Serialization.XmlAttributes.GetAttr ( MemberInfo memberInfo,
Type attrType )
inlinestaticpackage

Definition at line 318 of file XmlAttributes.cs.

319 {
320 object[] customAttributes = memberInfo.GetCustomAttributes(attrType, inherit: false);
321 if (customAttributes.Length == 0)
322 {
323 return null;
324 }
325 return customAttributes[0];
326 }

References System.Xml.Dictionary.

Referenced by System.Xml.Serialization.XmlMapping.GenerateKey().