DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.0.0-rc.1" />

 Constant<T>

public abstract class Constant<T> : ISupplier<T>
Allows to use constant values as generic parameters.
public T Value { get; }

Gets value of the constant.

protected Constant(T constVal)

Initializes a new generic-level constant.

public static T op_Implicit(Constant<T> const)

Extracts constant value.