Method CopyTo
CopyTo(Span<T>)
Copies the elements of the equatable array to the specified destination span.
Declaration
public void CopyTo(Span<T> destination)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<T> | destination |
CopyTo(T[])
Copies the elements of the equatable array to the specified destination array.
Declaration
public void CopyTo(T[] destination)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | destination |
CopyTo(T[], int)
Copies the elements of the equatable array to the specified destination array starting at the specified index of the destination.
Declaration
public void CopyTo(T[] destination, int destinationIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | destination | |
| int | destinationIndex |
CopyTo(int, T[], int, int)
Copies a range of elements of the equatable array to the specified destination array.
Declaration
public void CopyTo(int sourceIndex, T[] destination, int destinationIndex, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| int | sourceIndex | The zero-based index in the equatable array at which copying begins. |
| T[] | destination | The array to copy the elements to. |
| int | destinationIndex | The zero-based index in the destination array at which storing begins. |
| int | length | The number of elements to copy. |