Containment tree?

OK thought I figured out IDipose, but just read the Accelerated VB.NET Best Practices section and it says "Object does not contain objects that implement iDispose, so you don't have to iterate through the IDispose containment tree"

Is this a "containment tree" exactly what the program knows it has used and then allocates or is there a class / collection that I should be looking for when I delete the object?

0


source to share


1 answer


I have not read the book, but I have never heard of this containment tree. In context, it sounds like it just means all fields (of a given class) that also implement IDisposable

and therefore should be removed in the class Dispose

(if the argument disposing

is equal True

) - or rather, in your case, since there are no such fields. you do not need to take any further action.



+1


source







All Articles