I'm using a System.Winodws.Forms.Timer object in a script, and I need to clean up in OnTermination.
Is this correct?
protected override void OnTermination()
{
myTimer.Dispose();
}
Or this?
protected override void OnTermination()
{
base.Dispose();
myTimer.Dispose();
}
Both compile fine... is there a prefered way? Thanks!

Comment