title: Resolving T to int, float, decimal or double to compare calculation performance
body: <p>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.</p>
  
  <pre><code>    public static void Addition&lt;T&gt;(T number) where T:int, double, decimal, float            
      {
      //calculate elapsed time for operation
       var x=  number + number;// cannot add T + T
      }
  </code></pre>