title: How to define constraints on multiple generics parameters
body: <p>I am wondering why I cant get such simple thing like this on google. This code is not compilable. How can I do this?</p>
  
  <pre><code>public class TestStep&lt;StartEvent, CompletedEvent&gt; 
      where StartEvent : MyBase1, MyInterface1, new() &amp;&amp;
      where CompletedEvent : MyBase2, MyInterface2, new()
  {
  }
  </code></pre>
  
  <p>Please help.</p>