Code Snippets for the Dispose Pattern