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
Can namespace contain the private class?
What is stringbuilder c#?
What is an actual parameter?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
What is the difference between malloc () and new?
What is difference between managed and unmanaged code?
Write a C# program to find the Factorial of n
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?
What is data dictionary in c#?
How do you create dlls in .NET
What does out mean in c#?
What is the root element of an xml file?
What is difference between private and protected in c#?
What is default parameter in c#?
Why extension method is static?