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


Please Help Members By Posting Answers For Below Questions

What is monitor in C#?

678


How do I create a multi language, multi file assembly?

719


What is serialization in .net?

643


Where do we use static class in c#?

564


What is singleordefault?

599






Explain dataset.acceptchanges method in .net?

614


What is deferred execution?

564


What is dynamic in c#?

553


Differentiate between response.expires and response.expiresabsolute?

627


What is view model in c#?

551


If casting fails what type of exception is thrown?

563


What are the main reasons to use c# language?

572


Distinguish between a class and struct?

597


Does main have to be static c#?

592


What is dataview c#?

538