Difference between Dispose and Finalize method
Answer / kirti
Finalize method is used to free the memory used by some unmanaged resources like window handles (HWND). It's similar to the destructor syntax in C#. The GC calls this method when it founds no more references to the object. But, In some cases we may need release the memory used by the resources explicitely.To release the memory explicitly we need to implement the Dispose method of IDisposable interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is net framework 3.0 ?
How to make sure Client Validation is enabled in ASP.Net MVC
What is page life cycle?
Can Static Constructor be Overloaded?Justify it?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
When was .NET announced
What is asp net framework?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
What are ajax helpers in asp.net mvc?
Explain the methods used to render the views in ASP.Net MVC?
What are the sub types of ActionResult?
How the color of selected menu item will be changed in asp.net menu item?