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

How to force garbage collector to run?

Interviewer asked me about this today there an answer ?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download