How can Garbage Collection be forced in .NET?

Options
- By using System.GC.Finalize()
- By using System.GC.Collect()
- By using System.GC.KeepAlive()
- By using System.GC.Dispose()


CORRECT ANSWER : By using System.GC.Collect()

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement