Link to home
Start Free TrialLog in
Avatar of deleyd
deleydFlag for United States of America

asked on

Quick way to determine if a class instance is IDisposable?

I frequently find myself tracing through the class hierarchy to determine if a class is IDisposable. Or even worse, examining a class to determine if it should be IDisposable.

Sometimes they are; sometimes they aren't.

Is there an easier faster way?
SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deleyd

ASKER

Thank you everyone. I'm actually looking for a fast way when reviewing code to determine if something is IDisposable and we forgot to dispose of it.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial