static private IsDefined ( |
||
method | ||
caType | RuntimeType | |
inherit | bool | |
return | bool |
internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType, bool inherit)
{
ASSERT.PRECONDITION(method != null);
if (PseudoCustomAttribute.IsDefined(method, caType))
return true;
if (IsCustomAttributeDefined(method.Module, method.MetadataToken, caType))
return true;
if (!inherit)
return false;
method = method.GetParentDefinition() as RuntimeMethodInfo;
while (method != null)
{
if (IsCustomAttributeDefined(method.Module, method.MetadataToken, caType, inherit))
return true;
method = method.GetParentDefinition() as RuntimeMethodInfo;
}
return false;
}
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( |
|
CustomAttribute::IsDefined ( RuntimeType type, RuntimeType caType, bool inherit ) : bool |
public override bool IsDefined(Type attributeType, bool inherit) { return(CustomAttribute.IsDefined(this, attributeType, inherit)); }