Disposable Pattern

Disposable Pattern

An unofficial pattern that Microsoft follows, for disposing of objects, is one where a class implements the IDisposable interface, along with it's public Dispose method, and then adds a protected…