Welcome to MSDN Blogs Sign in | Join | Help

December 2004 - Posts

To Null or Not to Null

GC Myth: setting an object's reference to null will force the GC to collect it right away. GC Truth: setting an object's reference to null will sometimes allow the GC to collect it sooner. As much as you may want to, you can't guarantee the GC will collect
Posted by clyon | 13 Comments
Filed under:
 
Page view tracker