Skip to main content
This is lesson 9 of 11 in this module Course 83% complete

The Dispose Pattern: Using Blocks

Premium Content

Sign in with your account or sign up to access this lesson.

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.