BADF00D / DisposableFixer

This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Other
35 stars 7 forks source link

Recognise use of Reactive CompositeDisposables #49

Closed teh-hippo closed 7 years ago

teh-hippo commented 7 years ago

ReactiveX offers the structures, CompositeDisposable and StableCompositeDisposable to help handle reactive streams that create multiple disposables.

Is it possible to support these disposable 'containers'?

BADF00D commented 7 years ago

The CompositeDisposableis already recognized correctly and StableCompositeDisposable should be too, beside I don't know the second one. I just lookup up the code and they both implement IDisposable (directly or via ICancelable).

The real problem is, the extension method AddTo<T>(this ICollection<IDisposable>, T) where T : IDisposable. I already work on this feature in #34. But this is complicated to detect, so I will need some time to figure this out.

BADF00D commented 7 years ago

Fixed in version 0.26.0.0