Is IDisposable missing something???

Note: this entry has moved.

Who about:

public interface IDisposable
{
      event EventHandler Disposed;
      void Dispose();
      bool IsDisposed { get; }
}
That would make it feasible to have features that monitor for the disposal of elements to do something (like cleanup related state, etc.). For the record, the Disposed event *is* exposed in the IComponent interface.... too bad it didn't make it to the IDisposable interface :( .... (at least I'd like the event ...)
Published 27 April 2005 03:00 PM by Daniel Cazzulino
Filed under:

Comments

No Comments

Search

Go

This Blog

News

     

      Microsoft MVP Profile

Syndication