Managed resources

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

Guest

Hi,

The unmanaged resources should be cleaned up by the source code directly,
like for example database connection.

I am wondering how to distinguish between managed and unmanaged resources,
how to decide what is managed and what is unmanaged resource? For example
SQLDependency object is managed or unmanaged resource?

Thanks,

Lubomir
 
Lubomir,

If the class doesn't implement the IDisposable interface, then I
wouldn't worry about it. If it does, then I would make sure to call the
Dispose implementation as soon as possible.
 
Back
Top