Closed
Description
So I'm thinking some of our classes may need to implement CriticalFinalizerObject
to grantee that their resources are disposed of correctly.
Implementing IDisposable on a CriticalFinalizerObject-derived type is tricky because void Dispose(bool disposing) is virtual, yet it must run within a Constrained Execution Region. This may require an explicit call to RuntimeHelpers.PrepareMethod.
http://www.codeproject.com/Articles/29534/IDisposable-What-Your-Mother-Never-Told-You-About
Anyone have past experience implementing CriticalFinalizerObject
? Is it worth doing?
Metadata
Metadata
Assignees
Labels
No labels