Method ToCompositeDisposable
ToCompositeDisposable(IEnumerable<IDisposable>)
Converts an IEnumerable of IDisposable into a CompositeDisposable.
Declaration
public static CompositeDisposable ToCompositeDisposable(this IEnumerable<IDisposable> disposables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDisposable> | disposables | IEnumerable of IDisposable that will be added to the CompositeDisposable. |
Returns
Type | Description |
---|---|
CompositeDisposable | A new CompositeDisposable instance containing all disposables from the input collection. |