How to Implement IDisposable

I review a lot of C# code and the one thing I see people screw up the most is IDisposable. I think part of the reason is they don’t understand why IDisposable exists. After all, isn’t C# managed? IDisposable exists to to cleanup unmanaged resources. When I say unmanaged, I mean things like raw file … Continue reading How to Implement IDisposable