title: What can generics do what you can't do with composition?
body: <p>Given a class:</p>
  
  <pre><code>public class TestMain
  {
  
  }
  </code></pre>
  
  <p>And two classes accepting instances of this class, one through generics:</p>
  
  <pre><code>public class Test1&lt;T&gt; where T : TestMain
  {
      public Test1(T test)
      {
  
      }   
  }   
  </code></pre>
  
  <p>And one without:</p>
  
  <pre><code>public class Test2
  {
      public Test2(TestMain test)
      {
  
      }
  }
  </code></pre>
  
  <p>Why would you choose one over the other?</p>