Can we suppress the calling of destructor when the object is garbage collected?

 Posted by deccansoft on 10/1/2010 | Category: C# Interview questions | Views: 1665

System.GC.SuppressFinalize(ob) //ob is reference to object whose
destructor should not be called when the object is Garbage Collected.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Akiii on: 6/9/2012
nice one...

Thanks and Regards

Login to post response