Class DisposableMixins
- Namespace
- System.Reactive.Disposables
- Assembly
- ReactiveUI.dll
Extension methods associated with the IDisposable interface.
public static class DisposableMixins
- Inheritance
-
DisposableMixins
Methods
DisposeWith<T>(T, CompositeDisposable)
Ensures the provided disposable is disposed with the specified System.Reactive.Disposables.CompositeDisposable.
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
CompositeDisposableThe System.Reactive.Disposables.CompositeDisposable to which
item
will be added.
Returns
- T
The disposable.
Type Parameters
T
The type of the disposable.