What is the difference between Finalize() and Dispose()?

Gow.net
Posted by Gow.net under C# category on | Points: 40 | Views : 2216
Dispose() is called by as an indication for an object to release any unmanaged resources it has held.
Finalize() is used for the same purpose as dispose however finalize doesn't assure the garbage collection of an object.
Dispose() operates determinalistically due to which it is generally preferred.

Comments or Responses

Posted by: Akiii on: 2/9/2012 Level:Bronze | Status: [Member] | Points: 10
Hi @gowthaman .......i think you should post this in interview section !

Regards
Akiii

Login to post response