Describe the ways of cleaning an objects?

 Posted by vishalneeraj-24503 on 1/14/2014 | Category: C# Interview questions | Views: 1758 | Points: 40

There is a perfect tool provided by Dot Net framework called Garbage collector,where with the help of GC,we can clean up the object and reclaim the memory.The namespace used is System.GC.

Other way is Dispose.For that we have to implement IDisposable Interface.

We the help of Finalize,we can also remove unmanaged objects.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response