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
What is partialview in asp.net mvc?
explain what does .edmx file contains?
How route table has been created in ASP.NET ASP.Net MVC?
What is the version number for the next version of the .net framework, codenamed �orcas�?
how can you enhance the performance of entity framework?
What symbol would you use to denote, the start of a code block in razor views?
What are the main components of .net framework?
What does a viewmodel do?
How to use Jquery Plugins in ASP.Net MVC validation?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
The order of the filters that get executed, if the multiple filters are implemented?
If I have multiple filters implemented, what is the order in which these filters get executed?
explain why t4 entity is important in entity framework?
mention what is the difference between ado.net and classic ado?
Explain representational state transfer (rest) in detail?