In Visual Basic.NET, am I correct in saying that the following code is correct for a destructor?
I am asking this question because when I add this code to a class, the MsgBox("Finalize") is called twice.
Should this happen? Is the above code correct?
Code:
Protected Overrides Sub Finalize()
MsgBox("Finalize")
End SubShould this happen? Is the above code correct?