Dispose or not dispose ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I'm quite new to compact framework but I've read several articles on it,
I've explored codes and so on.

What's is not clear to me is if it is better or not to call the dispose
method when an object is not more used.

I read that the garbage collector make the job for us but in other articles
I saw some code with the calls to the dispose method.

Which is the rule to follow ? Dispose or not dispose ?

Thank you in advance.

Keven Corazza
 
If the object exposes a Dispose method then call it when you are done with
it.

Cheers
Daniel
 
Back
Top