title: Use typeof in generic class
body: <p>I Create Generic class like this: </p>
  
  <pre><code>public class Sample&lt;T&gt; where T : class
  {
      public DoSomething();
  }
  </code></pre>
  
  <p>then I create new class :</p>
  
  <pre><code>public class Sample2
  {
      Sample&lt;Sample2&gt; obj=new Sample&lt;Sample2&gt;();
  }
  </code></pre>
  
  <p>why can't i use the below code to create an instance of <code>Sample</code> class in <code>Sample2</code> class?</p>
  
  <pre><code>        Sample&lt;typeof&lt;this&gt;&gt; obj=new Sample&lt;typeof&lt;this&gt;&gt;();
  </code></pre>