Class DisposableMixins
- Namespace
- System.Reactive.Disposables
- Assembly
- ReactiveUI.dll
Extension methods associated with the IDisposable interface.
- Inheritance
-
Disposable
Mixins
Methods
DisposeWith<T>(T, CompositeDisposable)
Ensures the provided disposable is disposed with the specified System.
public static T DisposeWith<T>(this T item, CompositeDisposable compositeDisposable) where T : IDisposable
Parameters
item
TThe disposable we are going to want to be disposed by the CompositeDisposable.
compositeDisposable
CompositeDisposable The System.
Reactive. to whichDisposables. Composite Disposable item
will be added.
Returns
- T
The disposable.
Type Parameters
T
The type of the disposable.