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
Does c# support const methods, properties, or events?
What does question mark mean in c#?
What does namespace mean?
What is the difference between console and windows application?
Do while loops yes or no c#?
Is exe is machine dependent?
What is the default value of boolean variable?
What are the steps to create a webservice and consume it?
What is the difference between disposing of () and finalize() methods in c#?
Is is possible to force garbage collector to run?
Why var is used in c#?
List the fundamental oop concepts?
Is c# pass by value?
How do I create a dbml file?
What is the advantage of dependency injection?