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 a bool in c#?

479


Who is a accessibility modifier “protected internal” available to ?

597


Name which controls do not have events?

552


Is there an equivalent to the instanceof operator in visual j++?

518


What is Implicit conversion in C#?

564






Which string method is used for concatenation of two strings in c#?

473


Why is it called c sharp?

517


Can properties be static in c#?

548


What are the features of c#?

509


What is default value of enum c#?

459


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

1873


Name the property of the textbox which cannot be changed at runtime?

521


Is comparator a functional interface?

465


Is null empty or whitespace c#?

503


Can you pass value types by reference to a method?

522