What is the use of finalize and dispose eventhough garbage
collector is working?
Answers were Sorted based on User's Feedback
Answer / chinmay shah
We can perform finalize opertaion Immediately after
completing the work and same with dispose also while in
case of garbage collector it will dispose the object, until
it feels they are not in use.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / bharani
Finalize method is actually a the destructor for the
mananged objects, but if you want to destruct an unmanaged
object dispose method allows the programmer to make
explicit calls such as destroywindow to the destruct the
unmanaged object.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chaitanya
It is advisable not to use the finalize and Dispose
methods,because garbage collector takes Care of the objects
that Should be Disposed.We should use Finalise and Dispose
methods when working with resources in the network or
working with the unmanaged code.
| Is This Answer Correct ? | 3 Yes | 1 No |
what is linq to entities?
Is it possible to unit test an mvc application without running the controllers in an asp.net process?
If you change something in web.config file.Do u need to compile again?
5 Answers Broadridge, SMNetserv,
What are the types of authentication in .net
Can we create .DLL file without using the namespace?
How to ensure the credentials for WebService using Windows authentication
What is the CTS
what is mean by COM (component object model) and component based software development? Is it .NET is first COM based technology? Please answer me. Advance thanks.
What is entityset? : Entity framework
Explain Bundle.Config in ASP.Net MVC4?
Difference between ASP.NET MVC and ASP.NET WebForms?
If background completes its processing will it wait for foreground threads?