Answer Posted / 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 |
Post New Answer View All Answers
What is the 'page life cycle' of an ASP.NET MVC?
Explain bundle.config in mvc4?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
what is entity graph in entity framework?
What is the role of the jit compiler in .net framework?
what is msl?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?
What are Code Blocks in Views?
Is razor a server side?
What is html.renderpartial?
What is entity framework? : Entity framework
Explain JSON Binding?
Is dapper better than entity framework?
What filters are executed in the end?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?