What is the use of finalize and dispose eventhough garbage
collector is working?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the .net framework?

577


What is web api‘s in asp.net mvc 4 ?

582


What are Non Action methods in ASP.Net MVC?

591


What symbol would you use to denote, the start of a code block in razor views?

569


What is viewbag?

614






What are the Core features of ASP.NET MVC?

598


The order of the filters that get executed, if the multiple filters are implemented?

615


Mention the core components of .net framework?

572


What are the advantages of asp.net mvc?

558


Which filter executes first in an asp.net mvc application?

553


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

565


Is mvc 4 supporting windows azure sdk (software development kit) ?

556


What is managed extensibility framework?

555


What is layout in mvc?

565


Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

541