Class GenericArgumentException<G>
The exception that is thrown when one of the generic arguments provided to a type is not valid.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public class GenericArgumentException<G> : GenericArgumentException
Type Parameters
| Name | Description |
|---|---|
| G | Captured generic argument treated as invalid. |
Constructors
| Improve this Doc View SourceGenericArgumentException(String, String)
Initializes a new exception.
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. |