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
Explain the types of errors in c#?
Can constructor be protected in c#?
What is difference between yielding and sleeping?
what is method overloading in c#?
Why do we use readonly in c#?
Explain the difference between event and a delegate in c#?
What is the process of Serialization?
What is meant by unicode characters?
Define delegate?
What is session variable in c#?
What is the namespace for the thread class?
What is private and shared assembly?
What is writeline?
What is a multicast c# delegate?
Explain publishers and subscribers in events.