static public T FindCustomAttributeOfType <T>(this IDynamicCustomAttributeProvider item, bool inherit, Predicate <T> predicate) where T : Attribute { return(item.GetAllCustomAttributesOfType <T>(inherit).FindFirst(predicate)); }
static public Attribute FindCustomAttributeOfType(this IDynamicCustomAttributeProvider item, Type attribute_type, bool inherit, Predicate <Attribute> predicate) { return(item.GetAllCustomAttributesOfType(attribute_type, inherit).FindFirst(predicate)); }
static public bool TryGetCustomAttributeOfType <T>(this IDynamicCustomAttributeProvider item, bool inherit, out T attribute) where T : Attribute { return(item.GetAllCustomAttributesOfType <T>(inherit).TryGetFirst(out attribute)); }
static public IEnumerable <T> GetAllCustomAttributesOfType <T>(this IDynamicCustomAttributeProvider item, bool inherit) where T : Attribute { return(item.GetAllCustomAttributesOfType(typeof(T), inherit).Convert <Attribute, T>()); }
static public bool TryGetCustomAttributeOfType(this IDynamicCustomAttributeProvider item, Type attribute_type, bool inherit, out Attribute attribute) { return(item.GetAllCustomAttributesOfType(attribute_type, inherit).TryGetFirst(out attribute)); }