Dispose pattern: Difference between revisions

Content deleted Content added
Bloodgain (talk | contribs)
m Removed redundant use of "explicitly"
Line 35:
// Perform actions with the resource.
...
}
</source>
which is equal to:
<source lang="csharp">
Resource resource = GetResource()
try
{
// Perform actions with the resource.
...
}
finally
{
resource.Finalize();
}
</source>