Using Statement
suggest changeGotcha returning the resource which you are disposing
Multiple using statements with one block
Gotcha Exception in Dispose method masking other errors in Using blocks
Using statements are null-safe
Using Dispose Syntax to define custom scope
Using Statements and Database Connections
Executing code in constraint context
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents