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
Is null in c#?
Which config file has all the supported channels/protocol?
What is reflection in c#?
Why do we use delegates?
How does bitwise work?
What happens if a static constructor throws an exception?
What is the compiler of c#?
Explain polymorphism in c# with a simple example?
Why do we use inheritance in c#?
Why is c# good for games?
What are access modifiers in c#?
Why do we use abstract class in c#?
What is desktop example?
What is the difference between virtual and override in c#?
Explain how to use an extender provider in the project.