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) { 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 }