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
Describe the process of “exception handling implementation” in c#?
What are the namespace level elements?
What is the use of 0 in c#?
Can we inherit a private class in c#?
What's your approach to fetch static data in your windows form application?
How many types of delegates are there in c#?
Can enum be null c#?
How does dll hell solve in .net?
What is difference between dictionary and list in c#?
What is linq c#?
What is private protected in c#?
Why do we need serialization?
What do you use c# for?
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
What is the purpose of static?