What is Dispose method in .NET ?

Answer Posted / rajesh rajput

Is's a member of Idisposable interface provided by .net
framework.A class which implements this interface must
implement dispose(). that is responsible to remove
unmanaged resources from managed heap.

In this case, Garbage collector does not do anything as we
programmers handle the process of disposing the unmanaged
objects like DB objects etc.We should not infer that
garbage collector removes the objects which are no longer
in use in context of dispose only.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and object c#?

554


Major difference between Basic httpbinding and WShttpbinding?

670


What is difference between === and ==?

544


Difference between StackPanel and RelativePanel ?

674


What is new method in c#?

602






What is the usage of transponders?

621


Which is better interface or abstract class in c#?

518


Is std :: string null terminated?

580


What is the difference between hashtable and dictionary?

597


What is the syntax for calling an overloaded constructor within a constructor?

635


What is the difference between decimal and integer?

618


What is data annotation in c#?

594


Explain the difference between .net and c#?

580


Is hashset serializable c#?

583


How do I make a dll in c#?

592