title: Generic method inside non-generic class
body: <p>I'm using .net framework 4.0<br />
  I want to create a generic method inside a non-generic class
  but it gives me compile time error</p>
  <p><strong>Error :The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)</strong></p>
  <pre><code>  public class BlIAllClass
      {
          public static List&lt;T&gt; xyz()
          {
              List&lt;T&gt; cc = new List&lt;T&gt;();
              return cc;
          }
      }
  </code></pre>
  <p>Also there is a question asked by <strong>John Paul Jones</strong>
  <a href="https://stackoverflow.com/q/423605/2445111">Generic Method in non generic class</a><br />
  There he mentioned that it is possible to create generic method inside non-generic class.<br />
  Then what's wrong with my code.<br />
  Is it framework version related issue or i'm missing something</p>