title: do objects created in static class methods get garbage collected?
body: <p>I'm using a static class that has some methods, somewhat like this:</p>
  
  <pre><code>static class MyClass
  {
     public static string SomeMethod()
     {
         SomeObject TheObject = new SomeObject();
  
         return TheObject.SomeOtherMethod();
  }
  </code></pre>
  
  <p>As you can see, the static method <code>SomeMethod</code> instantiates an object and then returns. When it returns, does the instantiated object <code>TheObject</code> get garbage collected or does it  get reinstantiated each time <code>MyClass.SomeMethod</code> runs?</p>
  
  <p>Thanks.</p>