Is there a way to limit typing of T to be able to add default values to the function parameters?
public class Identity<T>
{
public readonly T Seed;
public readonly T Increment;
public Identity(T seed = 1, T increment = 1)
{
Seed = seed;
Increment = increment;
}
}
It is the T seed = 1
that i want to be able to do and maybe limit the T to non decimal numeric types like short, int, long...