Hi all,
I would like to use mathematical operators (*, +, etc) on a generic
parameter, see the code below:
public class TestGenerics<T> where ???
{
private T d;
public TestGenerics(int a)
{
d = a * 3;
}
}
Is this possible?
If yes, what constraint should I use on the T type argument?
Thanks
Jock