[Nerpa] Types with disposable fields

Hi Ilya,

if I get the warning "Types that own disposable fields should be
disposable" it would be great if you would display the fields that are
responsible for the warning. Even better would be a quick fix ;)


Sincerely,
Stefan Lieser

1 comment
Comment actions Permalink

Hello Stefan,

This analysis is currently very simple. It is not smart at all. I can highlight
fields, of course and QF to add IDisposable to interface list and implement
it is quite easy to do. However there can be many different scenarious, including
disposable base type, declaring protected virtual Dispose(bool) method, which
should be overriden instead of implementing IDisposable directly.

This is not very complex at all, but it takes time to analyse various cases
and I don't have much spare time :)

Sincerely,
Ilya Ryzhenkov


SL> Hi Ilya,
SL>
SL> if I get the warning "Types that own disposable fields should be
SL> disposable" it would be great if you would display the fields that
SL> are responsible for the warning. Even better would be a quick fix
SL> ;)
SL>
SL> Sincerely,
SL> Stefan Lieser


0

Please sign in to leave a comment.