DOTNET: Understanding Garbage Collection with Gen0, Gen1, Gen2
Yes, we can absolutely do this in one self-contained program 👍You’ll be able to: Below is a single Program.cs you can drop into a new console app. 1️⃣ Create the project Replace all contents of Program.cs with this: 2️⃣ How to run and “experience” GC From inside the project folder: The program will walk you…
