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

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top