Class GC
Controls the system garbage collector, a service that automatically reclaims unused memory.
Inherited Members
Namespace: System
Assembly: mscorlib.dll
Syntax
public static class GC
Methods
ReRegisterForFinalize(object)
Requests that the system call the finalizer for the specified object for which SuppressFinalize has previously been called.
Declaration
public static void ReRegisterForFinalize(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object that a finalizer must be called for. |
SuppressFinalize(object)
Requests that the system not call the finalizer for the specified object.
Declaration
public static void SuppressFinalize(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object that a finalizer must not be called for. |
WaitForPendingFinalizers()
Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.
Declaration
public static void WaitForPendingFinalizers()