Andrew Collins Andrew Collins - 1 year ago 50
C# Question

How to force garbage collector to run?

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

Answer Source

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