I have created a collection class derived from CollectionBase that can be
nested several layers deep. so my root object has several child objects,
each of which has several grandchild objects, and so on. (The structure is a
GoF Composite.)
If I call the CollectionBase.Clear method on the root object, will it
release all child and grandchild objects for garbage collection, or will it
release only the root-level children. In other words, do I need to call
Clear just on the root object, or do I need to traverse the structure and
call Clear on each object in the structure? Thanks.
--
Dave Veeneman
Chicago