DotNext by Roman Sakno

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

 Constant<T>

public abstract class Constant<T>
Allows to use constant values as generic parameters.
protected Constant(T constVal)

Initializes a new generic-level constant.

public static T op_Implicit(Constant<T> const)

Extracts constant value.