N
not_a_commie
Are there any tools available to track down IDisposable objects that
don't have a call to Dispose? I'm thinking this can be done with
static code analysis. If the object is created inside a method, it
should be created with a using statement. If it's a member of a class,
that class should have a Dispose function or call Dispose on the
object somewhere in there.
don't have a call to Dispose? I'm thinking this can be done with
static code analysis. If the object is created inside a method, it
should be created with a using statement. If it's a member of a class,
that class should have a Dispose function or call Dispose on the
object somewhere in there.