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
Why do we need dependency injection in c#?
What is int tryparse in c#?
What is using in c#?
Are c# destructors the same as c++ destructors?
What is virtual in c#?
Can arraylist hold primitive types?
What is out int in c#?
Define property in c#.net?
What is fcl in c#?
What is a partial method?
Is c sharp free?
Explain the three test cases in unit testing?
Why we use methods in c#?
What is null in database?
What is clr in c#?