> > I respectfully disagree that 3 is the most important option.
> > The reason for the finalizer is to ensure that unmanaged
> > resources get cleaned up even if
> <snip>
> 
> I think Ian was referring to a managed class (A) that wraps a managed
> class (B) that uses an unmanaged resource (R).

I was indeed.

And this case is actually the most common one in my experience.

I write *loads* of classes that wrap other classes that wrap unmanaged
resources.  I hardly ever write classes that wrap raw unmanaged
resources directly.



-- 
Ian Griffiths - DevelopMentor
http://www.interact-sw.co.uk/iangblog/

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to