.NET Framework defines a interface for types requiring a tear-down method:
public interface IDisposable
{
void Dispose();
}
Dispose() is primarily used for cleaning up resources, like unmanaged references. However, it can also be useful to force the disposing of other resources even though ...