LANGUAGE
using statement
Disposes an acquired resource on exit from the statement scope. Acquire is an illustrative helper.
Formal Syntax & Structure
csharp syntaxcsharp
using (IDisposable resource = Acquire()) { /* work */ }Working Example
Example Snippetcsharp
using (LabHandle handle = new LabHandle()) { Console.WriteLine("Work"); }