title: c#: static variable in a static method
body: <p>Can you have a static variable in a static method?  Would the value of this variable be preserved across all calls to the method?</p>
  
  <p>eg. </p>
  
  <pre><code>public static void MyMethod()
  {
      static int x = 0;
      x++;
  }
  </code></pre>