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

Explain the difference between const and static read-only?

514


When should we use sealed class in c#?

502


What are the uses of namespaces?

609


What is a decimal in c#?

508


What is a byte in c#?

557






Explain the difference between the debug class and trace class?

504


Which controls do not have events?

564


What is written in c#?

548


How does yield return work c#?

513


What is array class in c#?

466


How to find out that the code is written as managed or un-managed code?

603


What is equal c#?

510


What is the difference between method overriding and method overloading?

488


What is type class in c#?

501


Is c sharp and c# are same?

516