Class GenericArgumentException
The exception that is thrown when one of the generic arguments provided to a type is not valid.
Inheritance
GenericArgumentException
Implements
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public class GenericArgumentException : ArgumentException, ISerializable
Remarks
Initializes a new exception.
Constructors
| Edit this page View SourceGenericArgumentException(Type, string, string?)
The exception that is thrown when one of the generic arguments provided to a type is not valid.
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. |
Remarks
Initializes a new exception.
Properties
| Edit this page View SourceArgument
Generic argument.
Declaration
public Type Argument { get; }
Property Value
| Type | Description |
|---|---|
| Type |