static public bool HasCustomAttribute(this ICustomAttributeProvider item, bool inherit, Predicate <Attribute> predicate) { if (item.FindCustomAttribute(inherit, predicate) != null) { return(true); } return(false); }