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
Is it possible to create a custom filter?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
Why to use html.partial in mvc?
What is edm designer? : Entity framework
Explain the new features added in version 4 of mvc (mvc4)?
What filters are executed in the end?
What is entitycontainer? : Entity framework
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What is latest version of .net framework?
Which filter executes first in an asp.net mvc application?
what is scalar property?
How to use Jquery Plugins in ASP.Net MVC validation?
mention what is the key advantage of using entity framework or ef?
what is code first approach?
what is entityclient?