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(); } } }
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(); } } }
Leave a Reply