What is Dispose method in .NET ?
Answer Posted / sudhir sheoran
There are two ways to release the unmanaged resources.
1) Finalize:- Managed/ called by CLR
2) Dispose:- Called by the programmer.
Dispose uses IDisposable interface and suppresses the finalize
method,when called by the programmer.
If programmer forgets to implement dispose method
finalize get invoked and unmanaged resources are freed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to implement delegates in c#.net
What is the difference between field and variable in c#?
Which class comes after the SortedList class?
What is string pool in c#?
What is tochararray in c#?
What is a clr host?
Which of the following API is used to hide a window?
What is the C# syntax to catch any possible exception?
How many constructors can a class have c#?
What is single dimensional array in c#?
Explain what is copy constructor?
Write a program to find the angle between the hours and minutes in a clock
Why does dllimport not work for me?
So what makes your code really object-oriented #?
What is a generic c#?