Why is it not a good programming practice to use empty Destructors ?

 Posted by Chvrsri on 3/23/2011 | Category: C# Interview questions | Views: 4402 | Points: 40

If we create a destructor in our class there will be any entry created for the finalize queue.

When ever this destructor is called the Garbage Collector is invoked to process that queue.

So when ever that destructor is empty it causes a useless loss of performance.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response