title: How to restrict T to value types using a constraint?
body: <p>I want to restrict the possible types N can take-on using a constraint.  I wish to restrict N to be either a int or a decimal.</p>
  
  <pre><code>public static Chart PopulateInto&lt;T, N&gt;(List&lt;T&gt; yAxis, List&lt;N&gt; xAxis) where N : int, decimal
  {
      // Do stuff here
  }
  </code></pre>
  
  <p>Any help appreciated...</p>