Introducing Garbage Collection (GC)
We introduce the concept of automatic memory management in .NET, contrasting it with manual C/C++ allocation and the pitfalls of reference counting used in COM. The lesson explains why the garbage collector was added to the C# language, and why modern garbage collector performance rivals hand-optimized C code.
Previous Module
Array Performance Optimizations
This Module
The .NET Garbage Collector