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
Explain about finalize method?
How can we sort the elements of the array in descending order?
What is private constructor c#?
Name any three ways to pass parameters to a method in c#?
Explain the difference between arraylist and array and in c#?
Explain the difference between the debug class and trace class?
What is the difference between delegates and events in c#?
When would you use generics in your code c#?
What is the value which is accepted by all data types ?
What is a custom attribute?
Why delegate is used in c#?
What is the difference between ienumerable and enumerator?
What is console write in c#?
Is array passed by reference in c#?
What I can do with c#?