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

Is c# an open source?

492


What is a function c#?

484


What is difference between a function and a method?

490


Can a loop recorder detect a heart attack?

552


Explain the difference between directcast and ctype.

450






How long does it take to get a loop recorder put in?

458


What is the purpose of dependency injection?

470


What is xpath in c#?

477


What is yield in c#?

490


Describe the overview of clr integration.

487


How can I get around scope problems in a try/catch?

468


Are structs value types c#?

468


Why do we use readonly in c#?

486


What do you mean by hashtable c#?

562


Are c# strings null terminated?

530