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

◆ IsDefined() [7/9]

static bool System.Reflection.CustomAttribute.IsDefined ( RuntimeParameterInfo parameter,
RuntimeType caType )
inlinestaticpackage

Definition at line 93 of file CustomAttribute.cs.

94 {
95 if (PseudoCustomAttribute.IsDefined(parameter, caType))
96 {
97 return true;
98 }
99 return IsCustomAttributeDefined(parameter.GetRuntimeModule(), parameter.MetadataToken, caType);
100 }
static bool IsCustomAttributeDefined(RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType)

References System.Reflection.RuntimeParameterInfo.GetRuntimeModule(), System.Reflection.CustomAttribute.IsCustomAttributeDefined(), System.Reflection.PseudoCustomAttribute.IsDefined(), and System.Reflection.RuntimeParameterInfo.MetadataToken.