public static bool HasAttribute<T>(Type type, bool inherit = True) where T : Attribute
Returns:
bool

Parameters

type Type
inherit bool

Type Parameters

T Attribute
In this article