1.

Difference Between Dispose And Finalize Methods In C#?

Answer»

Finalize method is implicitly called by GarbageCollector to delete the OBJECT if it is no longer in use whereas Dispose method is explicitly called inside a CLASS through IDisposible INTERFACE to FORCEFULLY remove the object and its REFERENCES.

Finalize method is implicitly called by GarbageCollector to delete the object if it is no longer in use whereas Dispose method is explicitly called inside a class through IDisposible interface to forcefully remove the object and its references.



Discussion

No Comment Found