title: How to delete an instance of a class within that instance
body: <pre><code>class Foo
  {
      int Data;
      public Foo(int data)
      {
          Data = data;
      }
      public void Diminish()
      {
          this.Data--;
      }
  }
  Foo Foo1 = new Foo(5);
  Foo1.Diminish();
  </code></pre>
  
  <p>Is there Any way delete <code>Foo1</code> When Data is <code>0</code> within <code>Foo1</code>?</p>
  
  <p>(Free up the memory used by that instance)</p>