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

Can namespace contain the private class?

737


What is stringbuilder c#?

724


What is an actual parameter?

682


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

737


What is the difference between malloc () and new?

703


What is difference between managed and unmanaged code?

720


Write a C# program to find the Factorial of n

761


What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

712


What is data dictionary in c#?

694


How do you create dlls in .NET

814


What does out mean in c#?

725


What is the root element of an xml file?

696


What is difference between private and protected in c#?

688


What is default parameter in c#?

755


Why extension method is static?

673