API
GC.CollectionCount
Reports the number of collections for a generation since process start.
Formal Syntax & Structure
csharp syntaxcsharp
GC.CollectionCount(0)Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.GC.CollectionCount(0)