How can you clean up objects holding resources from within
the code?
Answer Posted / raju jaiwardhan
you would need to use a constraint to mandate types
implementing the IDisposable interface to call the Dispose
method.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Do I have any control over the garbage collection algorithm?
What is Finalizer in .NET define Dispose and Finalize ?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?
What is the difference between user control an custom control? Advantages/disadvantages?
What is class library in .net
Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
Explain the features that are common to all .Net languages.
What is loosely coupled solution in.net?
What is the difference between web application and enterprise application?
Explain about .NET services?
What is .net latest version?
Does .net supports destructors concept?
How do you instantiate a complex number?
What are the namespace available in .net?
What is a metadata in .net?