What is Dispose method in .NET ?
Answer Posted / rajesh rajput
Is's a member of Idisposable interface provided by .net
framework.A class which implements this interface must
implement dispose(). that is responsible to remove
unmanaged resources from managed heap.
In this case, Garbage collector does not do anything as we
programmers handle the process of disposing the unmanaged
objects like DB objects etc.We should not infer that
garbage collector removes the objects which are no longer
in use in context of dispose only.
Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
What is arraylist?
Explain manifest & metadata in c#.
How a two-dimensional array declared in C#?
Major difference between Basic httpbinding and WShttpbinding?
How many types of methods are there in c#?
Explain how is the dll hell problem solved in .net?
What is class in oops with example in c#?
What do you know about WM_CHAR message?
What is difference between function and method in c#?
What is extended class in c#?
What is different between Boxing and Unboxing?
What is the difference between list and array in c#?
Explain Direct CAST vs CType ?
What is difference between asp net and c# net?
Why reflection is used in c#?