When should you call the garbage collector in .NET?

 Posted by deccansoft on 8/2/2010 | Category: C# Interview questions | Views: 1601

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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response