Show / Hide Table of Contents

    Class GC

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

    Inheritance
    Object
    GC
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 extern 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 extern void SuppressFinalize(object obj)
    Parameters
    Type Name Description
    Object obj

    The object that a finalizer must not be called for.

    | Improve this Doc View Source

    WaitForPendingFinalizers()

    Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.

    Declaration
    public static void WaitForPendingFinalizers()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX