Where does the dispose method lie and how can it be used to
clean up resources?

Answer Posted / mohan kumar e.

The dispose method is available in System.IDisposable
interface.If you want to provide cleanup mechanism then
implement this interface and provide the definition for
dispose() method.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is private in c#?

490


what is scope of a protected internal member variable of a c# class

545


Can struct have constructor c#?

511


Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

491


What is difference between an reference type and value type in C#?

572






What do you mean by stack and heap in c#?

492


how dot net compiled code will become platform independent?

533


What do you mean by for each loop?

489


Do events have return type c#?

515


What is .cs file in c#?

529


What is for loop in c#?

516


Explanation on Generic?

564


Explain the difference between .net and c#?

504


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

563


What is the difference between protected and private?

479