can we call the garbage collector to run explicicitly?

Answer Posted / velu s

Yes we can call the Garbage collector explicitly by using
method Collect().

Ex. Create object for the Garbage collector.

GarbageCollector Gc = new GarbageCollector();
Gc.Collect();

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain linq to entities? : Entity framework

537


What is session state management?

557


Possible ways to prevent xss attacks on mvc application?

571


What is edm (entity data model)? : Entity framework

539


explain why t4 entity is important in entity framework?

554






Explain the request flow in asp.net mvc framework?

543


What is attribute routing in mvc?

571


What is the difference between viewbag and viewdata in asp.net mvc?

613


will there be any issues adding a table without primary keys to a data model?

601


How we can add the CSS in ASP.Net MVC?

571


What symbol would you use to denote, the start of a code block in razor views?

559


What is route config?

549


What is html.renderpartial?

558


Briefly describe the roles of clr in .net framework?

527


What is the difference between windows vista and .net framework 3.0 ?

535