Open sandboxFocus

Method HasCustomAttribute

HasCustomAttribute(object, Type, bool)

In Metalama, use IDeclaration.Attributes.

Declaration
public static bool HasCustomAttribute(object target, Type type, bool inherit = false)
Parameters
Type Name Description
object target
Type type
bool inherit
Returns
Type Description
bool