GetCustomAttribute() 정적인 개인적인 메소드

static private GetCustomAttribute ( ICustomAttributeProvider obj, Type attributeType, bool inherit ) : Attribute
obj ICustomAttributeProvider
attributeType Type
inherit bool
리턴 Attribute
예제 #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));
        }