Table of Contents

Class GC

Namespace
System
Assembly
mscorlib.dll

Controls the system garbage collector, a service that automatically reclaims unused memory.

public static class GC
Inheritance
GC
Inherited Members

Methods

ReRegisterForFinalize(object)

Requests that the system call the finalizer for the specified object for which SuppressFinalize has previously been called.

public static void ReRegisterForFinalize(object obj)

Parameters

obj object

The object that a finalizer must be called for.

SuppressFinalize(object)

Requests that the system not call the finalizer for the specified object.

public static void SuppressFinalize(object obj)

Parameters

obj object

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.

public static void WaitForPendingFinalizers()