Skip to main content
This is lesson 5 of 11 in this module Course 79% complete

Demo: Benchmarking Finalized Objects (part 1)

Premium Content

Sign in with your account or sign up to access this lesson.

We introduce a sample application that constructs 100,000 objects with finalizers, using GC.GetGeneration to track which generation each object inhabits at construction and at finalization, demonstrating that finalized objects end up in generation 1 or 2.