What is Dispose method in .NET ?

Answer Posted / prashant patil

A type's Dispose method should release all the resources
that it owns. It should also release all resources owned by
its base types by calling its parent type's Dispose method.
The parent type's Dispose method should release all
resources that it owns and in turn call its parent type's
Dispose method, propagating this pattern through the
hierarchy of base types.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of constructor?

491


How does yield return work c#?

517


What is strong data type in c#?

493


Differentiate between the public and private ?

579


What is the use of the dispose method in C# ?

552






What is use of singleton class in c#?

507


Define property in c#.net?

539


What is the difference between continue and break statement?

535


What does protected internal access modifier mean?

557


What is default method in c#?

513


How can I process command-line arguments?

539


What is dataview c#?

477


What is the difference between int.parse and int.tryparse methods?

579


How do you sort a list in c#?

505


Is c# a backend language?

585