CompositeDisposable.CopyTo(IDisposable[], int) method¶
Defined in
Type: CompositeDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public void CopyTo(IDisposable[] array, int arrayIndex)
Summary: Copies the disposables contained in the CompositeDisposable to an array, starting at a particular array index.
Parameters
| Name | Type | Description |
|---|---|---|
array | IDisposable[] | Array to copy the contained disposables to. |
arrayIndex | int | Target index at which to copy the first disposable of the group. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | array is null. |
| System.ArgumentOutOfRangeException | arrayIndex is less than zero. -or - arrayIndex is larger than or equal to the array length. |