How to enforce garbage collection in .NET?

Solution

.Net framework provides Collect() method to enforce garbage collector to run. Below is the Syntax.

System.GC.Collect()

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media