R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method forces the garbage collector to run immediately?

  • (A) GC.Stop()
  • (B) GC.Run()
  • (C) GC.Collect()
  • (D) GC.Execute()

Explanation by: Ram Sharma
`GC.Collect()` explicitly forces garbage collection in .NET.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.