一款简单易用的基础网络通讯组件库。

ConcurrentListTCopyTo 方法

Copies the elements of the ICollectionT to an Array, starting at a particular Array index.

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public void CopyTo(
	T[] array,
	int arrayIndex
)

参数

array  T
The one-dimensional Array that is the destination of the elements copied from ICollectionT. The Array must have zero-based indexing.
arrayIndex  Int32
The zero-based index in array at which copying begins.

实现

ICollectionTCopyTo(T, Int32)

异常

ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentExceptionThe number of elements in the source ICollectionT is greater than the available space from arrayIndex to the end of the destination array.

参见