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 |
mention what is the key advantage of using entity framework or ef?
What is the meaning of unobtrusive javascript?
Can u tell me differences which are introduced in .Net 1.1 and 2.0 and 3.0 and also in 3.5 ? by detailed?
How to set background for total website, on that another another layer, in that we keep website data,,for example see www.msn.com. On one faded background we ll have layer like other background..Do explain how its possible
How big is the char ?
What are non action methods in mvc?
Difference between Dispose and Finalize method
What is poco proxy? : Entity framework
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
Which filter executes first in an asp.net mvc application?
Name a few different return types of a controller action method?