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.
|
12
shouts |
|
|||
No comments yet, be the first one to post comment.