can we call the garbage collector to run explicicitly?

Answer Posted / lalitprakash baraik

Yes it is possible.The Gargabe collector class is named as GC and is found in the 'System' namespace.GC is a static class and the Collect method itself is static.There fore you can directly call the Collect() method without creation of an object to access the method.

GC.Collect()

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is partialview in asp.net mvc?

591


explain what does .edmx file contains?

630


How route table has been created in ASP.NET ASP.Net MVC?

542


What is the version number for the next version of the .net framework, codenamed �orcas�?

477


how can you enhance the performance of entity framework?

584






What symbol would you use to denote, the start of a code block in razor views?

559


What are the main components of .net framework?

538


What does a viewmodel do?

517


How to use Jquery Plugins in ASP.Net MVC validation?

543


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

538


The order of the filters that get executed, if the multiple filters are implemented?

607


If I have multiple filters implemented, what is the order in which these filters get executed?

516


explain why t4 entity is important in entity framework?

554


mention what is the difference between ado.net and classic ado?

561


Explain representational state transfer (rest) in detail?

547