title: Can a generic class be forced to have a type inherit from one of two interfaces?
body: <p>I have a generic class, but I want my type to be forced to inherit from either one or the other interface.  For example:</p>
  
  <pre><code>public class MyGeneric&lt;T&gt; where T : IInterface1, IInterface2 {}
  </code></pre>
  
  <p>The above will force T to inherti from both IInterface1 and IInterface2 but can I force T to inhert from IInterface1 OR IInterface2 (or both)?</p>