J
Jack Fox
I create a dictionary object "A" which contains many objects of class "B".
Each "B" also contains a reference (property) to its parent of class "A".
My question: when I either set "A" to a new occurence or set it to NULL, is
garbage collection going to take care of the former "A" and all of its "B"
objects, or do I need to do something with IDisposable? This is a rather
simple example, is it possible to construct more complicated scenarios of
cross-referencing that will inhibit garbage collection?
Each "B" also contains a reference (property) to its parent of class "A".
My question: when I either set "A" to a new occurence or set it to NULL, is
garbage collection going to take care of the former "A" and all of its "B"
objects, or do I need to do something with IDisposable? This is a rather
simple example, is it possible to construct more complicated scenarios of
cross-referencing that will inhibit garbage collection?