Closed dscopra closed 7 years ago
I can't reproduce the error. Everything works as expected.
using System;
using System.Reactive.Linq;
using System.Linq;
using Reactive.Bindings;
namespace DisFixerTest.MethodChaining {
class LastMethodReturnsAnDisposable {
private ReactiveCollection<IAmNotDispoable> _collection;
public LastMethodReturnsAnDisposable(IObservable<int> stream) {
_collection = stream
.Select(i => new Implementation())
.OfType<IAmNotDispoable>()
.ToReactiveCollection();
}
}
public interface IAmNotDispoable {
}
public class Implementation : IAmNotDispoable {
}
}
Version 0.22 doesn't seem to have this problem anymore.
ReactiveCollection implements IDisposable