C# (Sharp) Programming Language Question:
Download Questions PDF

When should you call the garbage collector in .NET?

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question


As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
What is the smallest unit of execution in .NET?How do you convert a value-type to a reference-type?