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

Parameters

type Type
inherit bool

Type Parameters

T Attribute
In this article