Saturday 14 June 2014

What is the significance of Finalize method in .NET?

What is the significance of Finalize method in .NET?
.NET Garbage collector does almost all clean up activity for your objects. But unmanaged
resources (ex: - Windows API created objects, File, Database connection objects, COM
objects etc) is outside the scope of .NET framework we have to explicitly clean our
resources. For these types of objects .NET framework provides Object. Finalize method218
which can be overridden and clean up code for unmanaged resources can be put in this
section.