Finalize method - advice please

  • Thread starter Thread starter Bob H
  • Start date Start date
B

Bob H

Hi,

In my webforms, I've a Finalize() proc with a MyBase.Finalize() statement in
it.

I'm trying to get my head round destructors and when to use them.

Can anyone shed some light on best practice on when to use the above please?
Should I have one of these in every form's code behind or just in dll
classes. I've read that the Dispose method is better - should I be using
this instead?

Many thanks

Bob
 
There should be no need to use the Finalize method. The garbage collector
will take care of freeing resources for you.

Chris

--------------------
 
Back
Top