CompositeDisposableAsync.CopyTo(IAsyncDisposable[]?, int) method¶
Defined in
Type: CompositeDisposableAsync
Namespace: ReactiveUI.Extensions.Async.Disposables
Assembly: ReactiveUI.Extensions.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
public void CopyTo(IAsyncDisposable[]? array, int arrayIndex)
Summary: Copies the elements of the collection to the specified array, starting at the given array index.
Parameters
| Name | Type | Description |
|---|---|---|
array | IAsyncDisposable[]? | The one-dimensional array of IAsyncDisposable elements that is the destination of the elements copied from the collection. The array must have zero-based indexing. |
arrayIndex | int | The zero-based index in the destination array at which copying begins. Must be non-negative and less than the length of the array. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | Thrown when arrayIndex is less than zero, greater than or equal to the length of array, or when there is not enough space from arrayIndex to the end of array to accommodate all elements in the collection. |