Exemplo n.º 1
0
        static public bool HasCustomAttributeOfType <T>(this ICustomAttributeProvider item, bool inherit, Predicate <T> predicate) where T : Attribute
        {
            if (item.FindCustomAttributeOfType <T>(inherit, predicate) != null)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        static public bool HasCustomAttributeOfType(this ICustomAttributeProvider item, Type attribute_type, bool inherit, Predicate <Attribute> predicate)
        {
            if (item.FindCustomAttributeOfType(attribute_type, inherit, predicate) != null)
            {
                return(true);
            }

            return(false);
        }