What is the Difference B/W Finalize() and Dispose() in .Net?

Answer Posted / vivek jagga

The GC call the Finalize() function automatically to destroy
the object called implicit destroy. when you want to destroy
a objects that you think no longer need and free it from
memory, then we will use the dispose function. For better
performance we will use the dispose function explicitly.

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between web user control and web custom control?

502


Explain method to handle error using HttpError in Web API?

578


what are the Custom controls in asp.net?

564


What is advantage of asp.net?

543


What is odata in web api?

558






Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

539


To load your generated dataset with data which method do you invoke?

602


What is difference between session and application in asp net?

486


Is global asax mandatory?

553


Describe the method to create a permanent cookie?

579


What is AutoPostback?

592


What is .net framework and what are the main components of it?

372


What is base class of button control in .net?

521


Why do we need a web application session?

508


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

535