calling garbage collector

Posted by Abhisekjani under C# on 3/23/2011 | Points: 10 | Views : 2596 | Status : [Member] | Replies : 1
can we call to the garbage collector implicitly in a program.




Responses

Posted by: SheoNarayan on: 3/23/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Implicitly - automatic call so you do not need to do anything

Explicitly - you need to write code

To explicitly call Garbage collector, you can use GC.Collect() method - read more about it in another thread http://www.dotnetfunda.com/forums/thread2-calling-garbage-collector-explicitely.aspx.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response