What does Dispose method do with the connection Object ?

 Posted by Bharathi Cherukuri on 4/24/2012 | Category: C# Interview questions | Views: 7822 | Points: 40

Dipose method is called for an object.
Before the Garbage collector automatically puts the object in to some of its generation, this dispose method is called for the object to release its memory.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Nareyugam on: 4/25/2012 | Points: 10
Used to free the memory of the object
Posted by: Akiii on: 4/25/2012 | Points: 10
Calling dispose method on un-managed code is always essential..

Thanks and Regards

Login to post response