Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ IsDefined()

override bool System.RuntimeType.IsDefined ( Type attributeType,
bool inherit )
inline

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 3556 of file RuntimeType.cs.

3557 {
3558 if ((object)attributeType == null)
3559 {
3560 throw new ArgumentNullException("attributeType");
3561 }
3562 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
3563 if (runtimeType == null)
3564 {
3565 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
3566 }
3568 }
static bool IsDefined(RuntimeType type, RuntimeType caType, bool inherit)

References System.SR.Arg_MustBeType, and System.Reflection.CustomAttribute.IsDefined().

Referenced by System.Enum.GetEnumInfo(), and System.Runtime.InteropServices.DynamicInterfaceCastableHelpers.GetInterfaceImplementation().