title: How do I specify multiple generic type constraints on a single method?
body: <p>I can restrict generics to a specify type using the "Where" clause such as:</p>
  
  <pre><code>public void foo&lt;TTypeA&gt;() where TTypeA : class, A
  </code></pre>
  
  <p>How do I do this if my function has two generic types?</p>
  
  <pre><code>public void foo&lt;TTypeA, TTypeB&gt;() where TTypeA : class, A &amp;&amp; TTypeB : class, B
  </code></pre>
  
  <p>The above doesn't work.  What's the correct syntax to add the rule "TTypeB : class, B"</p>