Chapter 14. Captain Amazing: The Death of the Object

image with no caption
image with no caption
image with no caption
image with no caption

Your last chance to DO something... your object’s finalizer

Sometimes you need to be sure something happens before your object gets garbage-collected, like releasing unmanaged resources.

Note

In general, ...

Get Head First C#, 2nd 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.