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

◆ IsDefined() [4/9]

static bool System.Reflection.CustomAttribute.IsDefined ( RuntimeFieldInfo field,
RuntimeType caType )
inlinestaticpackage

Definition at line 84 of file CustomAttribute.cs.

85 {
86 if (PseudoCustomAttribute.IsDefined(field, caType))
87 {
88 return true;
89 }
90 return IsCustomAttributeDefined(field.GetRuntimeModule(), field.MetadataToken, caType);
91 }
static bool IsCustomAttributeDefined(RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType)

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