Andrew Collins Andrew Collins - 7 months ago 20
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.