title: Is there a constraint that restricts my generic method to numeric types?
body: <p>Can anyone tell me if there is a way with generics to limit a generic type argument <code>T</code> to only:</p>
  
  <ul>
  <li><code>Int16</code></li>
  <li><code>Int32</code></li>
  <li><code>Int64</code></li>
  <li><code>UInt16</code></li>
  <li><code>UInt32</code></li>
  <li><code>UInt64</code></li>
  </ul>
  
  <p>I'm aware of the <code>where</code> keyword, but can't find an interface for <strong>only</strong> these types,</p>
  
  <p>Something like:</p>
  
  <pre><code>static bool IntegerFunction&lt;T&gt;(T value) where T : INumeric 
  </code></pre>