Skip to content

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

NameTypeDescription
arrayIDisposable[]Array to copy the contained disposables to.
arrayIndexintTarget index at which to copy the first disposable of the group.

Exceptions

TypeCondition
System.ArgumentNullExceptionarray is null.
System.ArgumentOutOfRangeExceptionarrayIndex is less than zero. -or - arrayIndex is larger than or equal to the array length.