Equivalent for Class_Terminate() in C#
<p>In VB 6.0 for a class I have this:</p>

<pre><code>Private Sub Class_Terminate()
  Call MethodFoo(False)
  Set objet1 = Nothing
  Set object2 = Nothing
End Sub
</code></pre>

<p>Now I need to do the same in C#, I am not much worried about those two null object but that darn MethodFoo() that is getting called I need that one. Where is a safe place to add that in its C# equivalent class? ( and not in Finalizer method ), I am already getting weird errors because of having this finalizer method in my C# class and want to get rid of that too.</p>
