Finalize () is called by Garbage Collector implicitly to free unmanaged resources. The garbage collector calls
this method at some point after there are no longer valid references to the object. There
are some resources like windows handles, database connections which cannot be collected by the garbage collector. Therefore the programmer needs to call Dispose() method of IDisposable interface.Dispose
() of IDisposable interface is called by the programmer to explicitly release resources when they are no longer being used. Dispose () can be called even if other references to the object are alive.
Kaushik_Kolk...
Member
2 Points
1 Post
Re: Dispose vs Finalize
Jun 27, 2008 05:02 AM|LINK