Chapter 8. Managing an Object’s Lifetime
In This Chapter
• Understanding Memory Allocation
• Understanding the Garbage Collection
• Understanding the Finalize Method
• Understanding Dispose and the IDisposable Interface
Real life is often a great place to get programming examples. Think of life: Humans are born; they grow up; they live their lives; they do tons of things; and, at a certain point, they die. Managing objects in programming environments works similarly. You give life to an object by creating an instance; then you use it in your own application while it is effectively useful to the application. But there is a point at which you do not need an object anymore, ...
Get Visual Basic® 2012 Unleashed, Second Edition 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.