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

◆ IsDefined()

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 328 of file RuntimeMethodInfo.cs.

329 {
330 if (attributeType == null)
331 {
332 throw new ArgumentNullException("attributeType");
333 }
334 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
335 if (runtimeType == null)
336 {
337 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
338 }
339 return CustomAttribute.IsDefined(this, runtimeType, inherit);
340 }

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