Click or drag to resize
GC Class
Controls the system garbage collector, a service that automatically reclaims unused memory.
Inheritance Hierarchy
SystemObject
  SystemGC

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static class GC

The GC type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetTotalMemory
Retrieves the number of bytes currently thought to be allocated. A parameter indicates whether this method can wait a short interval before returning, to allow the system to collect garbage and finalize objects.
Top
See Also