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 method which can be overridden and clean up code for unmanaged resources can be put in this section.
2007-10-23, 6810👍, 0💬
Is Session_End event supported in all session modes ? Session_End event occurs only in “Inproc mode”...
How can you implement MVC pattern in ASP.NET? The main purpose using MVC pattern is to decouple the ...
Can a variable be both const and volatile? Yes. The const modifier means that this code cannot chang...
How can we suppress a finalize method? GC.SuppressFinalize ()
How do we get the current culture of the environment in windows and ASP.NET? “CultureInfo.CurrentCul. ..