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 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?

532


What are scaffold templates in mvc?

580


What is iobjectset? : Entity framework

587


what is scalar property?

609


What does mvvm mean?

551






In razor syntax, what is the escape sequence character for @ symbol?

559


What are the benefits of .net framework?

563


Explain the advantage of packaging over xcopy in .net?

542


What is the benefit of entity framework?

537


What is a view engine?

567


Can you explain model, controller and view in mvc?

565


What is ViewStart Page in ASP.Net MVC?

575


How we can invoke child actions in ASP.Net MVC?

578


Explain tempdata in asp.net mvc?

600


Do you know about the new features in ASP.Net MVC 4 ?

593