ReactiveUI.Primitives.Disposables.DisposableBag
A small composite-disposable replacement specialised for the common 2-slot
"subscription + sink" pair found throughout this codebase. Avoids the
List<T> backing field of
System.Reactive.Disposables.CompositeDisposable.
Gets a value indicating whether this instance has been disposed.
public DisposableBag()
Initializes a new instance of the DisposableBag class.
Initializes a new instance of the DisposableBag class with two pre-populated slots.
Initializes a new instance of the DisposableBag class with three pre-populated slots.
Adds a disposable to the bag. If the bag is already disposed, the supplied disposable is disposed immediately.