Davronbek Umirov
What is the difference between Finalize() and Dispose() methods?
By Davronbek Umirov in C# on Jun 22 2016
  • Vinay K
    Mar, 2017 17

    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.

    • 2
  • Mukesh Kumar
    Aug, 2017 31

    Finalize remove both live & dead objects But dispose can not

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS