Andrew Collins Andrew Collins - 3 months ago 10
C# Question

How to force garbage collector to run?

Interviewer asked me about this today ...is there an answer ?

Answer

System.GC.Collect() forces garbage collector to run. This is not recommended but can be used if situations arise.

Comments