Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The .NET Framework does an excellent job at handling memory allocation and deallocation on your behalf, enabling you to focus on the business logic required by your application. It is, however, beneficial to have at least a basic understanding of how the .NET Framework manages memory and, more important, what mechanisms it provides to enable you to influence that management.
In this hour, you learned about the different ways the .NET Framework manages memory, through the managed heap and the stack. You saw how the using statement enables you to ensure a disposable object has its Dispose method called and how to implement the IDisposable interface in your own classes through the dispose pattern.