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

◆ GetCustomAttribute() [2/8]

static ? Attribute System.Attribute.GetCustomAttribute ( Assembly element,
Type attributeType,
bool inherit )
inlinestaticinherited

Definition at line 676 of file Attribute.cs.

677 {
678 Attribute[] customAttributes = GetCustomAttributes(element, attributeType, inherit);
679 if (customAttributes == null || customAttributes.Length == 0)
680 {
681 return null;
682 }
683 if (customAttributes.Length == 1)
684 {
685 return customAttributes[0];
686 }
687 throw new AmbiguousMatchException(SR.RFLCT_AmbigCust);
688 }
static Attribute[] GetCustomAttributes(MemberInfo element, Type attributeType)
Definition Attribute.cs:338

References System.Attribute.GetCustomAttributes(), and System.SR.RFLCT_AmbigCust.