Static class
GC
static class GC
Module: System.Runtime
Assembly: System.Runtime.dll
Source file: GC.rvn
Queries and controls the current execution's tracing heap.
Properties
6 items
Static member:
AllocatedObjectCount: long
Total tracked objects allocated since this execution started.
Static member:
CollectionCount: long
Completed collections in this execution, including explicit requests.
Static member:
HeapObjectCount: long
Tracked objects currently retained, including garbage not yet collected.
Static member:
HeapObjectLimit: long
Host-configured maximum retained object count; collection cannot raise it.
Static member:
PeakHeapObjectCount: long
Largest retained object count observed in this execution.
Static member:
ReclaimedObjectCount: long
Total tracked objects reclaimed by completed collections.
Methods
2 items
Static member:
Collect() -> ()
Synchronously collects unreachable objects in the current execution.
Static member:
KeepAlive(value: object?) -> ()
Retains a reference through this call; null is accepted.