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 class and object c#?
Major difference between Basic httpbinding and WShttpbinding?
What is difference between === and ==?
Difference between StackPanel and RelativePanel ?
What is new method in c#?
What is the usage of transponders?
Which is better interface or abstract class in c#?
Is std :: string null terminated?
What is the difference between hashtable and dictionary?
What is the syntax for calling an overloaded constructor within a constructor?
What is the difference between decimal and integer?
What is data annotation in c#?
Explain the difference between .net and c#?
Is hashset serializable c#?
How do I make a dll in c#?