dotnetcorner.ch blog

C# IDisposable pattern on sub-classes0

15 July 2011
Christoph Keller Christoph Keller

Scenario: I had a base-class which was implementing the IDisposable pattern (including the GC.SuppressFinalize() part). From this class, I inherited a sub-class which also required doing some disposing stuff.