Specifies the behavior for a forced garbage collection. : Garbage Collection « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Garbage Collection
Specifies the behavior for a forced garbage collection.
using System;
class Program
{
static void Main(string[] args)
{
GC.Collect(2, GCCollectionMode.Optimized);
}
}
Related examples in the same category