GC.Collect Method
.NET Framework 3.0
Forces garbage collection.
| Name | Description |
|---|---|
| GC.Collect () | Forces an immediate garbage collection of all generations. Supported by the .NET Compact Framework. |
| GC.Collect (Int32) | Forces an immediate garbage collection from generation zero through a specified generation. |