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
What is monitor in C#?
How do I create a multi language, multi file assembly?
What is serialization in .net?
Where do we use static class in c#?
What is singleordefault?
Explain dataset.acceptchanges method in .net?
What is deferred execution?
What is dynamic in c#?
Differentiate between response.expires and response.expiresabsolute?
What is view model in c#?
If casting fails what type of exception is thrown?
What are the main reasons to use c# language?
Distinguish between a class and struct?
Does main have to be static c#?
What is dataview c#?