good advice on C# finalizers

2008-04-25 @ 20:02#

this post is a good reference on the importance (and often improper use) of the Finalizer pattern in .NET.

the short version:

If you create a Finalize method (~Class in C#), even if it is empty, this will put the object on the finalize queue.

of course, the other key point is that you only need a finalizer when your managed code (C#) has a pointer to unmanaged code(C/C++, etc.).

code