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
What are native functions?
What debugging tools come with the .NET ssSDK?
Can I use parseint?
What is the use of functional interface?
Why we use delegates in c#?
Does c# have its own class library?
What is the adv of using System.Text.StringBuilder over System.String?
What is static class in C#?
How many digits are in an integer?
Why do we use polymorphism in c#?
What is a int in c#?
What is boxing & unboxing?
What is xor operator in c#?
Can I define a type that is an alias of another type (like typedef in c++)?
Explain states of a thread in c#?