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 arraylist?

719


Explain manifest & metadata in c#.

753


How a two-dimensional array declared in C#?

747


Major difference between Basic httpbinding and WShttpbinding?

786


How many types of methods are there in c#?

735


Explain how is the dll hell problem solved in .net?

644


What is class in oops with example in c#?

688


What do you know about WM_CHAR message?

763


What is difference between function and method in c#?

645


What is extended class in c#?

693


What is different between Boxing and Unboxing?

784


What is the difference between list and array in c#?

674


Explain Direct CAST vs CType ?

754


What is difference between asp net and c# net?

691


Why reflection is used in c#?

702