What is the difference between Finalize() and Dispose() methods?
Davronbek Umirov
Dispose method will be used to free unmanaged resources like files, database connection etc. we need to write the code manually to call Dispose() method.It belongs IDisposable Interface.Finalize() : This method also free unmanaged resources like database connections, files etc…But Its automatically raised by Garbage Collector.This method belongs to object class.
Finalize remove both live & dead objects But dispose can not