Lately I was refactoring a manager class which used internally a private struct to hold instances belonging together in a dictionary. Some referenced instances hold in this struct were disposable, thus implementing the IDisposable interface. The thought of implementing IDisposable on the internal struct came across my mind but then I quickly asked myself what happens with the struct if you implement IDisposable in .NET. I want to present the result of my research in this article.
Structs being disposable