This zipped file is associated with Francesco Balena's feature, "Master Memory Management" [Visual Studio Magazine, December 2002].


These demos are provided in two versions, VB.NET and C#. Except for the language, the two programs are identical and perform in the same way.

1) the GCDEMO project contains routines that let you test features described in the article, including weak references 

2) the COMPOUNDOBJECTS project shows how you can optimize the garbage collection of a class by encapsulating all the dependent objects that require finalization in a private, nested class

