title: Why can't I declare static variable inside static Main method in C#
body: <p>Is there any reason behind this kind of implementation, why I am not able to declare</p>
  
  <pre><code>  class Defaultclass
    {
       static void Main(string[] args)
       {
         static int x=5;
       }
    }
  </code></pre>
  
  <p>throws compilation error</p>