Programming Tutorials

Comment on Tutorial - Question: How can you force garbage collection of an object? By Ash



Comment Added by : Biniam E

Comment Added at : 2011-12-17 15:09:09

Comment on Tutorial : Question: How can you force garbage collection of an object? By Ash
You said the garbage collector can not be forced, option A is correct. But I read on MSDN that the GC.Collect() method forces garbage collection. The link to the statement above is here: http://msdn.microsoft.com/en-us/library/system.gc.collect(v=vs.71).aspx

View Tutorial