ListObservable.CopyTo(T[], int) method¶
Defined in
Type: ListObservableSystem.Reactive
Assembly: System.Reactive.dll
Applies to
net8.0, net8.0-windows10.0.19041, netstandard2.0
public void CopyTo(T[] array, int arrayIndex)
Inherited documentation
These docs were inherited from ICollection<T>. The member doesn't override them on this type.
Summary: Copies the elements of the ICollection to an Array, starting at a particular Array index.
Parameters
| Name | Type | Description |
|---|---|---|
array | T[] | The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing. |
arrayIndex | int | The zero-based index in array at which copying begins. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | array is null. |
| System.ArgumentOutOfRangeException | arrayIndex is less than 0. |
| System.ArgumentException | The number of elements in the source ICollection is greater than the available space from arrayIndex to the end of the destination array. |