What is Dispose method in .NET ?

Answer Posted / neerajtyagi

Whenever you want to release unusable resources used by
your class automatically , you should implement IDisposable
interface in your class.

Implementing IDisposable will provide you Dispose method in
subclass, where you can code your own to release unused
resources.

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the process of “exception handling implementation” in c#?

720


What are the namespace level elements?

690


What is the use of 0 in c#?

721


Can we inherit a private class in c#?

650


What's your approach to fetch static data in your windows form application?

734


How many types of delegates are there in c#?

675


Can enum be null c#?

718


How does dll hell solve in .net?

693


What is difference between dictionary and list in c#?

683


What is linq c#?

686


What is private protected in c#?

658


Why do we need serialization?

668


What do you use c# for?

699


If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

741


What is the purpose of static?

733