LinqMixins.DisposeWith(IDisposable, MultipleDisposable) method¶
Defined in
Type: LinqMixins
Namespace: Minimalist.Reactive
Assembly: Minimalist.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static void DisposeWith(this IDisposable disposable, MultipleDisposable disposables) - 2.
public static SingleDisposable DisposeWith(this IDisposable disposable, Action? action = null)
1. Overload¶
public static void DisposeWith(this IDisposable disposable, MultipleDisposable disposables)
Summary: Disposes the IDisposable with the disposables instance.
Parameters
| Name | Type | Description |
|---|---|---|
disposable | IDisposable | The disposable. |
disposables | [MultipleDisposable](# | The disposables. |
2. Overload¶
public static SingleDisposable DisposeWith(this IDisposable disposable, Action? action = null)
Summary: Disposes the with.
Parameters
| Name | Type | Description |
|---|---|---|
disposable | IDisposable | The disposable. |
action = null | Action? | The action. |
Returns: SingleDisposable -- A SingleDisposable.