title: Why can't we declare var a = new List<string> at class level?
body: <p>I know we cannot do this at class level but at method level we can always do this. </p>
  
  <pre><code>var myList=new List&lt;string&gt; // or something else like this
  </code></pre>
  
  <p>This question came to my mind since wherever we declare variable like this. We always provide the type information at the RHS of the expression.  So compiler doesn't need to do type guessing. (correct me if i am wrong).</p>
  
  <p>so question remains WHY NOT at class level while its allowed at method level</p>