title: different return type from method in generic class
body: <p>The following code is just made up, is this possible to do with C#? </p>
  
  <pre><code>class A
  {
      public int DoStuff()
      {
          return 0;
      }
  }
  
  class B
  {
      public string DoStuff()
      {
          return "";
      }
  }
  
  class MyMagicGenericContainer&lt;T&gt; where T : A, B
  {
      //Below is the magic &lt;------------------------------------------------
      automaticlyDetectedReturnTypeOfEitherAOrB GetStuff(T theObject)
      {
          return theObject.DoStuff();
      }
  }
  </code></pre>