can we call the garbage collector to run explicicitly?

Answer Posted / velu s

Yes we can call the Garbage collector explicitly by using
method Collect().

Ex. Create object for the Garbage collector.

GarbageCollector Gc = new GarbageCollector();
Gc.Collect();

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by bootstrap in mvc5?

641


Explain the new features added in version 4 of mvc (mvc4)?

540


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

1977


Which version of .net framework is installed?

493


will there be any issues adding a table without primary keys to a data model?

609






What is an asynchronous controller in asp.net mvc?

545


What is the .net framework 3.0 (formerly winfx)?

554


Can you set the unlimited length for "maxjsonlength" property in config?

561


what is datacontrols?

3097


How large is the .net framework 3.0? Does this change make the release larger?

552


What are Scaffold templates in ASP.Net MVC?

575


How we can call a javascript function on the change of a dropdown list in mvc?

569


What are the components required to create a route in ASP.Net MVC?

586


Can I use razor code in javascript in asp.net mvc?

541


Is entity framework slow?

524