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

◆ IsDefined()

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 223 of file RuntimeConstructorInfo.cs.

224 {
225 if (attributeType == null)
226 {
227 throw new ArgumentNullException("attributeType");
228 }
229 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
230 if (runtimeType == null)
231 {
232 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
233 }
234 return CustomAttribute.IsDefined(this, runtimeType);
235 }

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