How do you enforce garbage collection in .net

Showing Answers 1 - 2 of 2 Answers

Seshagiri

  • Jan 5th, 2007
 

you can enforce by using this statement

System.GC.Collect();

 

  Was this answer useful?  Yes

sunitha

  • Jan 5th, 2007
 

by writing

System.gc.collect() we can force garbage collection,But it is not recommended.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions