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 |
Can we add constraints to the route? If yes, explain how we can do it?
Why do I get errors when I try to serialize a Hashtable
What is the meaning of unobtrusive javascript? Explain us by any practical example.
What is oauth in web api?
Mention what is the difference between “ActionResult” and “ViewResult” ?
Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )
How does the .net framework 3.0 relate to windows vista?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
What are the methods in Thread class?
How large is the .net framework 3.0? Does this change make the release larger?
What are sections?
What are the main components of .net framework?