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 are the Core features of ASP.NET MVC?
What is layout in mvc?
What are the levels at which filters can be applied in an asp.net mvc application?
What is ViewData and TempData in ASP.Net MVC?
What are Action Methods in ASP.NET MVC?
Can I use razor code in javascript in asp.net mvc?
How route table is created in ASP.NET MVC?
How do you specify comments using razor syntax?
Can we change web.config settings from iis?
What is representational state transfer (rest) mean?
How to Redirect Tracing to a File
Can I add asp.net mvc testcases in visual studio express?
Mention the core components of .net framework?
what is deferred loading(lazy loading)?
What is partialview in asp.net mvc?