Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term
| Finalize
|
| Definition
| Method called automatically when an object is destroyed by the garbage collector. Finalize is useful for releasing unmanaged resources acquired by the object before the object is garbage collected. Managed resources do not require a Finalize method; because, they will be released automatically by the garbage collector. Destructors defined in C# classes are mapped to Finalize methods. Also known as a finalizer.
|
| See also
| Destructor, Dispose
|
| This C# Online.NET definition is from the Glossary of .NET / C# Terms.
|