.Net Framework Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2153 Page Views: 

Can we force garbage collection in .Net?



Posted By: Avi Date: 28 August 2009 04:58:58 PM
 Answer:

Yes. Set all references to null and then call System.GC.Collect().


Posted By: eTechPlanet


Date: 28 August 2009 04:58:58 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image EG40he
Related Questions
.Net Framework : Does the .NET framework support transactions?

Does the .NET framework support transactions?

Yes
Category: .Net Framework Date: 10/13/2010 6:33:49 PM
.Net Framework : What is garbage collection and how it works?

What is garbage collection and how it works?

Garbage collection manages the allocation and release of mememory for application. Each time the new....
Category: .Net Framework Date: 10/13/2010 6:23:48 PM
.Net Framework : Does the .NET framework supports 64 bit?

Does the .NET framework supports 64 bit?

Yes
Category: .Net Framework Date: 10/13/2010 5:31:49 PM
.Net Framework : What is the difference between integer.Parse and integer.TryParse?

What is the difference between integer.Parse and integer.TryParse?

integer.Parse will throw exception if the string provided couldn’t be parsed. TryParse will return f....
Category: .Net Framework Date: 10/13/2010 4:38:48 PM
.Net Framework : What is XAML and where it’s used?

What is XAML and where it’s used?

XAML is declarative markup language. XAML simplifies creating user interface for .NET framework appl....
Category: .Net Framework Date: 10/13/2010 3:46:49 PM