GC Methods
.NET Framework 2.0
| Name | Description | |
|---|---|---|
| AddMemoryPressure | Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection. |
| Collect | Overloaded. Forces garbage collection. |
| CollectionCount | Returns the number of times garbage collection has occurred for the specified generation of objects. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetGeneration | Overloaded. Returns the current generation number of an object. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetTotalMemory | 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. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| KeepAlive | References the specified object, making it ineligible for garbage collection from the start of the current routine to the point where this method is called. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| RemoveMemoryPressure | Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection. |
| ReRegisterForFinalize | Requests that the system call the finalizer for the specified object, for which SuppressFinalize has previously been called. |
| SuppressFinalize | Requests that the system not call the finalizer for the specified object. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| WaitForPendingFinalizers | Suspends the current thread until the thread processing the queue of finalizers has emptied that queue. |