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 find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?
How do you declare an arraylist?
What is serialization of data?
Name the property of the textbox which cannot be changed at runtime?
What is _viewstart cshtml?
Which programming language is best for desktop applications?
How many types of constructors are there in c#?
What is the use of console readline () in c#?
How do I format a string in c#?
Can abstract class be sealed?
Define encapsulation?
What is exe file in c#?
What is private static in c#?
Can namespace contain the private class?
What does == mean in c sharp?