What is Finalize method in .NET?

What is Finalize method in .NET?

Object.Finalize method in .NET is typically used to clean and release unmanaged resources like OS files, window etc. Even though Garbage collector in .NET has the ability to determine the life time of such objects, however, with no knowledge how to clean them. The Finalize method allows an object to clean up such unmanaged resources when the garbage collector wishes to reclaim the memory. However, Finalize method should be avoided until necessary as it affects the performance because reclaiming the memory used by objects with Finalize methods requires at least two garbage collections.
What are the concepts of DISPOSE method in .NET?
Dispose method belongs to IDisposable interface. It is used to free unmanaged resources like files, network connection etc.....
Serialization in .NET
Serialization in .NET - System.Runtime.Serialization namespace provides Serialization in .NET...
Advantages of binary serialization
Advantages of binary serialization - An object is stored in a file, a database or even in the memory....
Post your comment