API
GC.GetGeneration
Returns the generation number currently associated with an object.
Formal Syntax & Structure
csharp syntaxcsharp
GC.GetGeneration(sample)Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.GC.GetGeneration(sample)