On Tue, Jun 15, 2010 at 6:31 PM, Glen Harvy <[email protected]> wrote:
<snip>
>
> The argument has been put that the GC will do it and Finalizers (are they
> the same as Destructors - I don't think so) handle it for you so why even

They are the same or your code below wouldn't work properly.

> bother. Ok - why bother even having Finalizers and Destructors if the GC
> will do it. I chose the opposite - your code is the most important thing
> now-a-days, not disk space or memory usage, so therefor what have you got to
> lose by properly implementing a Dispose method.
>
<snip>
>
> As a matter of course, that is whenever I create a class I add the following
> at the end:

This is identical to the code added by VB.NET when you implement IDisposable.

<snip>
>
> Glen.
>

-- 
Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)

Reply via email to