Summary
Ensures the provided disposable is disposed with the specified CompositeDisposable
.
Syntax
public static T DisposeWith<T>(this T item, CompositeDisposable compositeDisposable)
where T : IDisposable
Type Parameters
Name |
Description |
T |
The type of the disposable.
|
Parameters
Name |
Type |
Description |
item |
T |
The disposable we are going to want to be disposed by the CompositeDisposable.
|
compositeDisposable |
CompositeDisposable |
The CompositeDisposable to which item will be added.
|
Return Value
Type |
Description |
T |
The disposable.
|