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 should you override the tostring() method?
Is stringbuilder faster than string concatenation c#?
Is list ienumerable c#?
Is c# an open source language?
Can we set image Source dynamically using C# in WPF application?
What are destructors in C#?
How can you use abstract class and interface?
What is the difference between null and string empty in c#?
Why generics are used?
Explain About .Net remoting
Why do we need constructor?
Does c# support c type macros?
How does a while loop work?
What is void in c#?
Explain about multithreading?