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 partial assembly reference
Is c# difficult to learn?
What is difference between dictionary and hashtable?
What is razor view in c#?
What is anonymous method in c#?
Distinguish between array and arraylist in c#?
How do I unload an assembly?
Can you store different types in an array in c#?
Can list contain duplicates c#?
What is the use of functional interface?
Can an array be null c#?
Define multicast c# delegate?
Can abstract class have constructor c#?
What is the advantage of constructor?
What is difference between a type and class?