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

◆ GetCustomAttributes() [4/16]

static Attribute[] System.Attribute.GetCustomAttributes ( Assembly element,
Type attributeType,
bool inherit )
inlinestaticinherited

Definition at line 618 of file Attribute.cs.

619 {
620 if (element == null)
621 {
622 throw new ArgumentNullException("element");
623 }
624 if (attributeType == null)
625 {
626 throw new ArgumentNullException("attributeType");
627 }
628 if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute))
629 {
630 throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass);
631 }
632 return (Attribute[])element.GetCustomAttributes(attributeType, inherit);
633 }
virtual object[] GetCustomAttributes(bool inherit)
Definition Assembly.cs:332

References System.SR.Argument_MustHaveAttributeBaseClass, System.Reflection.Assembly.GetCustomAttributes(), and System.Type.IsSubclassOf().