Skip to content

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)

View source

Summary: Copies the elements of the collection to the specified array, starting at the given array index.

Parameters

NameTypeDescription
arrayIAsyncDisposable[]?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.
arrayIndexintThe zero-based index in the destination array at which copying begins. Must be non-negative and less than the length of the array.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptionThrown 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.