Geeks With Blogs

News



Microsoft Store

Support This Site


AddThis Social Bookmark Button

Locations of visitors to this page

Subscribers to this feed

TwitterCounter for @sdorman

Creative Commons License


Scott Dorman Microsoft MVP, Software Architect, Developer, Author

I just posted a new article on Code Project that explains the proper way to implement the IDisposable interface and the Dispose pattern.

Implementing IDisposable is something that often times gets skipped over and when it does get implemented, it is usually implemented simply by following the interface template.

Unfortunately, this doesn't cover all of the situations where the class's resources should be released. This article hopes to dispel some of the myths around implementing the Dispose pattern and provides the rules to implement it properly.

[Update, 22-Jan-2008: Updated the article link for Code Project.]

Posted on Sunday, August 27, 2006 8:34 PM .NET (General) | Back to top

Copyright © Scott Dorman | Powered by: GeeksWithBlogs.net