When and How to Use Dispose and Finalize in C# November 28, 2006 hen the .NET framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it’s no longer referenced by any