public static T GetSingle <T>(this ICustomAttributeProvider type, bool inherit = false) where T : Attribute { return(type.Get <T>(inherit) .SingleOrDefault()); }
public static bool Have <T>(this ICustomAttributeProvider type, bool inherit = false) where T : Attribute { return(type.Get <T>(inherit) .Any()); }