Show / Hide Table of Contents

Class GenericArgumentException

The exception that is thrown when one of the generic arguments provided to a type is not valid.

Inheritance
object
Exception
SystemException
ArgumentException
GenericArgumentException
GenericArgumentException<T>
Implements
ISerializable
Inherited Members
ArgumentException.ThrowIfNullOrEmpty(string, string)
ArgumentException.ThrowIfNullOrWhiteSpace(string, string)
ArgumentException.Message
ArgumentException.ParamName
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public class GenericArgumentException : ArgumentException, ISerializable
Remarks

Initializes a new exception.

Constructors

| Edit this page View Source

GenericArgumentException(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 Source

Argument

Generic argument.

Declaration
public Type Argument { get; }
Property Value
Type Description
Type

Implements

ISerializable

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾