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
Which .net framework is installed?
What is the significance of nonactionattribute?
What is entity framework? : Entity framework
What are the main components of .net framework?
What filters are executed in the end?
List out few different return types of a controller action method?
will there be any issues adding a table without primary keys to a data model?
Explain linq to entities? : Entity framework
What are the new features 3.5 framework against with the tool?
What are the components required to create a route in ASP.Net MVC?
What are the 2 ways of adding constraints to a route?
What are the versions of .net framework?
what is entity data model?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
List the new features added in .net framework 4.0.