Close a class
Posted on 2006-05-29
Here is my class:
public class MyClass
/// MyClass is closing
public event EventHandler MyClassClosing;
public void OnMyClassClosing(EventArgs e)
if (MyClassClosing != null)
I need to close the class programmatically. So when I decide to close the class, I raise the MyClassClosing event to inform the user and then I close the class.
The problem is that I don't know how to close my class.
Thanks in advance for your answers.