can we call the garbage collector to run explicicitly?
Answer Posted / prateek
But forcefully calling Garbage collector reduces the
performance. As when CLR runs Garbage collector
automatically it checks all the objects which are not used
for a long time and remove them. But if we use
System.GC.Collect(), it will shift the particular object to
cache. When CLR founds no object which is made to be free
then it will check the cache memory from there it will
remove that very object. So, how it is reducing the performance.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what do you mean by navigation property?
What is definingquery in entity framework? : Entity framework
What are scaffold templates in mvc?
How we can handle the exception at controller level in ASP.Net MVC?
what is lazy loading in entity framework?
What is object service? : Entity framework
what is split entity?
Explain dependency resolution?
Explain peek method in tempdata in asp.net mvc?
Explain what languages does the .net framework support?
What are the 2 ways of adding constraints to a route?
How does servicing work for the .net framework 3.0?
how do you truncate a table using entity data model?
What is Area in ASP.Net MVC?
In Server how to check whether model has error or not in ASP.Net MVC