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

◆ IsDefined()

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 95 of file RuntimeFieldInfo.cs.

96 {
97 if (attributeType == null)
98 {
99 throw new ArgumentNullException("attributeType");
100 }
101 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
102 if (runtimeType == null)
103 {
104 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
105 }
106 return CustomAttribute.IsDefined(this, runtimeType);
107 }

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