Content deleted Content added
c# code fixed due to http://www.codeproject.com/Articles/6564/Understanding-the-using-statement-in-C (2013-01-28) |
→Language constructs: add reference for C# "using" statement |
||
Line 28:
To make the dispose pattern less verbose, several languages have some kind of built-in support for it:
The [[C Sharp (programming language)|C#]] language features the <code>using</code> statement <ref>[http://msdn.microsoft.com/en-us/library/yh598w02.aspx using Statement (C# Reference)]</ref> that automatically calls the <code>Dispose</code> method on an object that implements the <code>IDisposable</code> [[interface (computer science)|interface]]:
<source lang="csharp">
|