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 are the Types of compatabilities and explain them
What do you mean by sealed classes and static classes?
Why do we need reflection in c#?
What is executenonquery c#?
What Is A Satellite Assembly?
Illustrate serialization?
What is ienumerable and iqueryable?
What is the use of private constructor in c#?
Which is faster list or dictionary in c#?
Explain the process of Serialization?
Is c# good for games?
What is jagged array?
Is c# easier than c++?
How can I get the ascii code for a character in c#?
Can we inherit private class in c#?