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 an icollection in c#?
if a method is marked as protected internal who can access it?
What are the methods in c#?
Explain jagged arrays in c#?
What do u mean by thread safe?
Explain the OOPS concept in C#?
What is wpf application in c#?
What is the difference between int and int in c#?
What is the difference between a class and an object c#?
Why do we need delegates?
What is dll hell, and how does .net solve it?
What are the 3 types of comments in c#?
Is typeof c#?
Write a program in C# for checking a given number is PRIME or not.
What is difference between private, protected, and public in C#?