October 2008
Beginner to intermediate
680 pages
16h 48m
English
In the C++ language, there is a delete operator that allows the programmer to explicitly control when a dynamically allocated object is no longer needed, and its memory can therefore be recycled. This is both a blessing and a curse! It's a blessing because it gives a C++ programmer very tight control over his/her memory resources in a program. But if a C++ programmer forgets to recycle his/her objects, the program can literally run out of memory—this is known as a memory leak.
With C#, however, there is no delete operator: anything dynamically created—all reference types as opposed to value types—is a candidate for C# garbage collection when all references to it (handles) have been eliminated. Like ...
Read now
Unlock full access