DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.7.4" />

.NET API 552,344 bytes

 GenericArgumentException

The exception that is thrown when one of the generic arguments provided to a type is not valid.
using System; using System.Runtime.CompilerServices; namespace DotNext { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class GenericArgumentException : ArgumentException { public Type Argument { get; } public GenericArgumentException(Type genericParam, string message, [System.Runtime.CompilerServices.Nullable(2)] string paramName = null) : base(message, (paramName != null && paramName.Length > 0) ? paramName : genericParam.FullName) { Argument = genericParam; } } }