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 Action Methods in ASP.NET MVC?
If I have multiple filters implemented, what is the order in which these filters get executed?
Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )
Define the core components of an ASP.NET MVC application?
What is session state management?
What is the difference between model and entity?
Is http stateful or stateless?
Is it possible to create a custom filter?
What are the advantages of razor view engine?
What is entityset? : Entity framework
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What is meant by bootstrap in mvc5?
Can you please explain the request flow in ASP.NET MVC framework?
How does the .net framework 3.0 relate to windows vista?
What are the versions of .net framework?