title: how to destroy a Static Class in C#
body: <p>I am using .net 1.1. I have a session class in which I have stored many static variables that hold some data to be used by many classes.</p>
  
  <p>I want to find a simple way of destroying this class instead of resetting every variable one by one. For example if there is a static class MyStatic, I would have liked to destroy/remove this class from the memory by writing MyStatic = null, which is not currently possible,</p>
  
  <h2>Additional question.</h2>
  
  <p>The idea of singleton is good, but I have the following questions:</p>
  
  <p>If singleton is implemented, the 'single' object will still remain in the memory. In singleton, we are only checking if an instance is already existing. how can i make sure that this instance variable also gets destroyed. </p>
  
  <p>I have a main class which initializes the variable in the static class. Even if I plan to implement a Rest() method, I need to call it from a method, for eg, the destructor in the main class. But this destructor gets called only when GC collects this main class object in the memory, which means the Reset() gets called very late</p>
  
  <p>thanks
  pradeep</p>