GCMemoryInfo.Generation Property

Definition

Gets the generation this GC collected. Collecting a generation also collects younger generations.

C#
public int Generation { get; }

Property Value

The generation this GC collected.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10