chinmay.sahoo
New member
• Finalize() is called by the runtime
• Is a C# equivalent of destructor, called by Garbage Collector when the object goes out of scope.
• Implement it when you have unmanaged resources in your code, and want to make sure that th se resources are freed when the Garbage collection happens.
• Finalize() can NOT be overridden or called in C#.
• Since, Finalize() is called by the Garbage Collector, it is non-deterministic
• Is a C# equivalent of destructor, called by Garbage Collector when the object goes out of scope.
• Implement it when you have unmanaged resources in your code, and want to make sure that th se resources are freed when the Garbage collection happens.
• Finalize() can NOT be overridden or called in C#.
• Since, Finalize() is called by the Garbage Collector, it is non-deterministic