static public bool HasCustomAttributeOfType <T>(this IDynamicCustomAttributeProvider item, bool inherit, Predicate <T> predicate) where T : Attribute { if (item.FindCustomAttributeOfType <T>(inherit, predicate) != null) { return(true); } return(false); }
static public bool HasCustomAttributeOfType(this IDynamicCustomAttributeProvider item, Type attribute_type, bool inherit, Predicate <Attribute> predicate) { if (item.FindCustomAttributeOfType(attribute_type, inherit, predicate) != null) { return(true); } return(false); }