Hi is it possible that the following method somehow recognizes that it can be only int, double, decimal or float and add them with the + operator. If I use dynamic then it is a problem because I wish to compare the time for addition for the different types and if they are cast to dynamic I do not know what will be the effect. Thanks.
public static void Addition<T>(T number) where T:int, double, decimal, float
{
//calculate elapsed time for operation
var x= number + number;// cannot add T + T
}