Esempio n. 1
0
        public override IEnumerable <Attribute> GetCustomAttributes(Type reflectedType, Reflection.ParameterInfo parameter)
        {
            if (reflectedType == null)
            {
                throw new ArgumentNullException(nameof(reflectedType));
            }
            if (parameter == null)
            {
                throw new ArgumentNullException(nameof(parameter));
            }
#if netstandard10
            return(parameter.GetCustomAttributes(false));
#else
            return(Attribute.GetCustomAttributes(parameter, false));
#endif
        }
Esempio n. 2
0
 public override IEnumerable <Attribute> GetCustomAttributes(Type reflectedType, Reflection.ParameterInfo parameter)
 {
     if (reflectedType == null)
     {
         throw new ArgumentNullException("reflectedType");
     }
     if (parameter == null)
     {
         throw new ArgumentNullException("parameter");
     }
     return(parameter.GetCustomAttributes(false));
 }
 public override IEnumerable <Attribute> GetCustomAttributes(Type reflectedType, Reflection.ParameterInfo parameter !!)
 {
     if (reflectedType == null)
Esempio n. 4
0
        public override IEnumerable <Attribute> GetCustomAttributes(Type reflectedType, Reflection.ParameterInfo parameter)
        {
            if (parameter is null)
            {
                throw new ArgumentNullException(nameof(parameter));
            }

            if (reflectedType == null)
            {
                throw new ArgumentNullException(nameof(reflectedType));
            }

            return(Attribute.GetCustomAttributes(parameter, false));
        }