How to enforce the Garbage Collection in C# ?

You can enforce the garbage collection in C# using System.GC.Collect();

using System;
namespace ConsoleApplication1
{ 
    class Program
    {
        static void Main(string[] args)
        {
            System.GC.Collect();
        }
    }
}