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 do you mean by delegates and explain different types of delegates?
What is void method?
Define satellite assembly in c#?
How to put assembly in gac?
What are the benefits of using generics?
Can properties be static in c#?
Describe the parts of assembly.
Explain about ODP.net
What is generic delegates in c#?
What is the property of class?
Can datetime be null c#?
What is concrete class in c# with example?
Illustrate the process of code compilation in c#?
What do you use c# for?
Is typeof c#?