Vivek Kumar
What is the difference between “dispose” and “finalize” variables in C#?
By Vivek Kumar in C# on Feb 08 2016
  • Mukesh Kumar
    Sep, 2017 3

    dispose releases unmanaged objects while finalise releases all objects

    • 1
  • Vivek Kumar
    Feb, 2016 8

    Dispose - This method uses interface – “IDisposable” interface and it will free up both managed and unmanaged codes like – database connection, files etc.Finalize - This method is called internally unlike Dispose method which is called explicitly. It is called by garbage collector and can’t be called from the code.

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS