GenericArgumentException public class GenericArgumentException : ArgumentException The exception that is thrown when one of the generic arguments provided to a type is not valid. Documentation Code public Type Argument { get; } Generic argument. public GenericArgumentException(Type genericParam, string message, string paramName = null) Initializes a new exception.