- . , . vb.net Object.Finalize() Sub Overrides Finalize(). Object.Finalize. # Object.Finalize() . , "" ( , ), Finalize() :
override void Finalize(void)
{
try
{
.. supplied code here
}
finally
{
base.Finalize();
}
}
The intended purpose of the language construct is to make the completion code platform-independent. In practice, this is simply stupid, because any code that uses finalizers correctly will have to use platform-specific methods, such as GC.KeepAlive()and GC.SuppressFinalize().
source
share