WHAT IS THE DIFFERENCE BETWEEN “DISPOSE” AND “FINALIZE” VARIABLES IN C#?

Total Post:0

Points:0
C# 
C#
 270  View(s)
Ratings:
Rate this:
  1. Post:123

    Points:615
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!