Type Summary
public sealed class GC { // Properties MS public static int MaxGeneration { get; } // Methods MS public static void Collect (); MS CF public static void Collect (int generation); MS CF public static int GetGeneration (object obj); MS CF public static int GetGeneration (WeakReference wo); MS public static long GetTotalMemory (bool forceFullCollection); public static void KeepAlive (object obj); public static void ReRegisterForFinalize (object obj); public static void SuppressFinalize (object obj); public static void WaitForPendingFinalizers (); }
JM You will notice that there is neither a Collect method nor a Generation property in this class. They were there originally, but were removed, after much discussion and debate, because ... |
Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.