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
Is mvc 4 supporting windows azure sdk (software development kit) ?
What is the advantage of using asp.net routing?
Explain how to use multiple submit buttons in ASP.Net MVC?
Explain two instances where routing is not implemented or required?
Explain peek method in tempdata in asp.net mvc?
What is MVVM design pattern?
How to use Jquery Plugins in ASP.Net MVC validation?
What is objectcontext? : Entity framework
mention what is the difference between ado.net and classic ado?
What is an asynchronous controller in asp.net mvc?
How do I install .net framework?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
What is ViewData and TempData in ASP.Net MVC?
What is representational state transfer (rest) mean?
What are the new enhancements done in default project template of asp.net mvc 4?