Pages

Monday 4 June 2012

Garbage collection


The .NET Framework is a garbage-collected environment. Garbage collection is the process of
detecting when objects are no longer in use and automatically destroying those objects, thus
freeing memory.

In .NET, this new garbage collector works so that you as a developer are no longer required to
monitor your code for unneeded objects and destroy them.

With this new garbage collector, you can control certain aspects of its functions, as it works
behind the scenes in your application. Within the SDK documentation, look under the
System.GC class for more information.


No comments:

Post a Comment