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
Can arraylist store different data types in c#?
What is a hash table in c#?
What is event sourcing in c#?
what is partial assembly reference
Is c# pass by reference?
What is xslt in c#?
What is jit? What are the different types of jit?
Can we use "this" command within a static method?
Do loops c#?
When should we use sealed class in c#?
Which one is trusted and which one is untrusted?
What is difference between array and list in c#?
List down the reason behind the usage of c# language.
Why do we overload constructors?
Can you inherit from multiple classes in c#?