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

◆ IsDefined()

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 133 of file RuntimePropertyInfo.cs.

134 {
135 if (attributeType == null)
136 {
137 throw new ArgumentNullException("attributeType");
138 }
139 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
140 if (runtimeType == null)
141 {
142 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
143 }
144 return CustomAttribute.IsDefined(this, runtimeType);
145 }

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