GetCustomAttribute() static private méthode

static private GetCustomAttribute ( ICustomAttributeProvider obj, Type attributeType, bool inherit ) : Attribute
obj ICustomAttributeProvider
attributeType Type
inherit bool
Résultat Attribute
Exemple #1
0
        public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
        {
            // neither parameter is allowed to be null
            CheckParameters(element, attributeType);

            // MemberInfo inheritance hierarchies can be searched for attributes, so the second
            // parameter of GetCustomAttribute () is respected.
            return(MonoCustomAttrs.GetCustomAttribute(element, attributeType, inherit));
        }