Home All Groups Group Topic Archive Search About
Author
20 Jan 2006 5:46 PM
Mythran
In C#/C++, you can use the following (almost the same for both) for
destructors:

// Constructor
public ClassNameHere()
{

}

// Destructor:
~ClassNameHere()
{

}

In VB.Net, is Finalize() method the destructor method?

Thanks,
Mythran

Author
20 Jan 2006 5:50 PM
Armin Zingler
Show quote Hide quote
"Mythran" <kip_potter@hotmail.comREMOVETRAIL> schrieb
> In C#/C++, you can use the following (almost the same for both) for
> destructors:
>
> // Constructor
> public ClassNameHere()
> {
>
> }
>
> // Destructor:
> ~ClassNameHere()
> {
>
> }
>
> In VB.Net, is Finalize() method the destructor method?

Yes.

See also:
http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconFinalizeDestructors.asp


Armin