How can you clean up objects holding resources from within
the code?

Answer Posted / mohan kumar e.

We can cleanup objects by implementing IDisposable
interface and providing the implementation for Dispose
method.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is default value of decimal c#?

664


Explain about Threading Types.

830


Why can’t struct be used instead of class for storing entity?

708


How to Show Message box in Metro Style App?

782


What is a factory in c#?

676


What is generic delegate in c#?

633


What does mean before a string in c#?

703


What is boolean conditions in c#?

700


What is instantiating a class?

707


Explain the difference between pass by value and pass by reference.

739


Is c# slower than java?

669


What benefit do you get from using a primary interop assembly (pia)?

734


Is cli same as the clr?

690


Is it not possible to store a boolean value as a variable?

636


Explain copy constructor?

884