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 major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What are scaffold templates in mvc?
What is iobjectset? : Entity framework
what is scalar property?
What does mvvm mean?
In razor syntax, what is the escape sequence character for @ symbol?
What are the benefits of .net framework?
Explain the advantage of packaging over xcopy in .net?
What is the benefit of entity framework?
What is a view engine?
Can you explain model, controller and view in mvc?
What is ViewStart Page in ASP.Net MVC?
How we can invoke child actions in ASP.Net MVC?
Explain tempdata in asp.net mvc?
Do you know about the new features in ASP.Net MVC 4 ?