Class GenericArgumentException
The exception that is thrown when one of the generic arguments provided to a type is not valid.
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public class GenericArgumentException : ArgumentException
Constructors
| Improve this Doc View SourceGenericArgumentException(Type, String, String)
Initializes a new exception.
Declaration
public GenericArgumentException(Type genericParam, string message, string paramName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | genericParam | Incorrect actual generic argument. |
| String | message | The error message that explains the reason for the exception. |
| String | paramName | The name of generic parameter. |
Properties
| Improve this Doc View SourceArgument
Generic argument.
Declaration
public Type Argument { get; }
Property Value
| Type | Description |
|---|---|
| Type |