The Dispose Pattern: Using Blocks
We introduce the using statement as syntactic sugar for a try/finally block that guarantees Dispose is called when a scope exits, discuss how the compiler uses the IDisposable interface, and summarize when the finalizer fallback is needed and when it can be safely ignored.
Previous Module
Memory Performance Optimizations
This Module
Disposing and Finalizing Objects