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 stored and retrive video in Sql server using asp.net c#......?
What is a event in c#?
What is namespace give the example?
What is default value of enum c#?
can multiple catch blocks be executed for a single try statement?
What is the meaning of int parse in c#?
What is object pool in .net?
What is a di class?
Why delegates are safe in c#?
Is stringbuilder better than string?
Why do we need indexers in c#?
what is difference between is and as operators in c#?
What is mean by c#?
What are bitwise logical operators?
Distinguish between the Debug class and Trace class with its functionality?