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

◆ IsDefined()

override bool System.Reflection.RuntimeParameterInfo.IsDefined ( Type attributeType,
bool inherit )
inlinevirtual

Reimplemented from System.Reflection.ParameterInfo.

Definition at line 406 of file RuntimeParameterInfo.cs.

407 {
408 if (attributeType == null)
409 {
410 throw new ArgumentNullException("attributeType");
411 }
413 {
414 return false;
415 }
416 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
417 if (runtimeType == null)
418 {
419 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
420 }
421 return CustomAttribute.IsDefined(this, runtimeType);
422 }
static bool IsNullToken(int token)

References System.SR.Arg_MustBeType, System.Reflection.CustomAttribute.IsDefined(), System.Reflection.MetadataToken.IsNullToken(), and System.Reflection.RuntimeParameterInfo.m_tkParamDef.