12
shouts

The Disposable Pattern

published 237 days, 23 hours ago posted by CygonCygon 240 days, 7 hours, 8 minutes ago
Saturday, December 05, 2009 3:14:36 PM GMT Thursday, December 03, 2009 7:07:07 AM GMT

Simple explanation of the Disposable Pattern in .NET for developers new to garbage collection. Explains when to implement the IDisposable interface only, where a finalizer is required and why you mustn't call into other objects from the finalizer thread. Also shows common use cases illustrating when to implement IDisposable and when to implement the full Disposable Pattern.

category: Architecture | clicked: 66 | | source: www.nuclex.org | show counter code
tags: Beginner, Dispose, Garbage Collection, Pattern, Patterns & Practices