Chapter 10. Memory/Resource Management

In This Chapter

Much of the reason that managed code is called managed is because resources—and in particular, memory that is allocated by managed code—is managed. Responsibility for the deallocation of the memory does not rest with the programmer. With unmanaged code, all memory that is allocated requires the programmer to deallocate it. The CLR has a good scheme for managing the memory allocation and deallocation for an application. The CLR gives the programmer a world-class general-purpose garbage collector that frees the programmer from undue concern about memory allocation and deallocation. ...

Get .NET Common Language Runtime Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.