April 2002
Beginner
413 pages
10h 46m
English
Writing code for the .NET Framework provides the benefit of automatic memory management. This means that you allocate the memory you need with the new operator, but you don't have to worry about freeing the memory. An internal garbage collector within the CLR determines when memory is no longer referenced and cleans it up when necessary.
The garbage-collection feature keeps the memory clean while the application is executing, which frees you from writing the code to manage the memory allocations and deleting allocated memory when it is no longer needed.
Typically in unmanaged code, it is bad practice to allocate small amounts of memory or classes repeatedly and then delete ...
Read now
Unlock full access