static internal bool IsDefined(ParameterInfo param, Type caType, bool inherit)
        {
            if (param == null)
            {
                throw new ArgumentNullException("param");
            }

            int    token  = param.GetToken();
            IntPtr module = param.GetModule();

            return(CustomAttribute.IsCADefinedCheckType(caType, module, token));
        }
        static internal Object[] GetCustomAttributes(ParameterInfo param, Type caType, bool inherit)
        {
            if (param == null)
            {
                throw new ArgumentNullException("param");
            }

            int             token  = param.GetToken();
            IntPtr          module = param.GetModule();
            CustomAttribute caItem = CustomAttribute.GetCustomAttributeListCheckType(token, module, caType, null, 0);

            return(CustomAttribute.CheckConsistencyAndCreateArray(caItem, caType));
        }
Example #3
0
        static internal Object[] GetCustomAttributes(ParameterInfo param, Type caType, bool inherit) {
            if (param == null) 
                throw new ArgumentNullException("param");

            int token = param.GetToken();
            IntPtr module = param.GetModule();
            CustomAttribute caItem = CustomAttribute.GetCustomAttributeListCheckType(token, module, caType, null, 0);
            return CustomAttribute.CheckConsistencyAndCreateArray(caItem, caType);
        }
Example #4
0
        static internal bool IsDefined(ParameterInfo param, Type caType, bool inherit) {
            if (param == null) 
                throw new ArgumentNullException("param");

            int token = param.GetToken();
            IntPtr module = param.GetModule();
            return CustomAttribute.IsCADefinedCheckType(caType, module, token);
        }