Class GenericArgumentException<T>
The exception that is thrown when one of the generic arguments provided to a type is not valid.
Inheritance
GenericArgumentException<T>
Implements
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public class GenericArgumentException<T> : GenericArgumentException, ISerializable
Type Parameters
Name | Description |
---|---|
T | Captured generic argument treated as invalid. |
Remarks
Initializes a new exception.
Constructors
| Edit this page View SourceGenericArgumentException(string, string?)
The exception that is thrown when one of the generic arguments provided to a type is not valid.
Declaration
public GenericArgumentException(string message, string? paramName = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
string | paramName | The name of generic parameter. |
Remarks
Initializes a new exception.