SyntaxFix
Write A Post
Hire A Developer
Questions
using (B a = new B()) { DoSomethingWith(a); }
is equivalent to
B a = new B(); try { DoSomethingWith(a); } finally { ((IDisposable)a).Dispose(); }