What is the difference between “dispose” and “finalize” variables in C#?

Total Post:123

Points:615

C# 
C#
 758  View(s)
Ratings:
Rate this:
  1. What is the difference between “dispose” and “finalize” variables in C#?

    Dispose - This Dispose method uses interface – “IDisposable” interface it is used tol free up both managed and unmanaged codes like – database connection, files etc.

    Finalize - This Finalize 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.

      Modified On Nov-20-2017 03:24:34 AM

Answer