in Dot Net by (1.4k points)

What is the difference between Finalize() and Dispose() methods?

1 Answer

0 votes
by (1.4k points)

Dispose() is called when we want for an object to release any unmanaged resources with them. On the other hand Finalize() is used for the same purpose but it doesn't assure the garbage collection of an object.

Related questions

+1 vote
+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri (1.4k points)
+1 vote
+1 vote
...