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

ConcurrentListTInsert 方法

Inserts an item to the IListT at the specified index.

Definition

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

参数

index  Int32
The zero-based index at which item should be inserted.
item  T
The object to insert into the IListT.

实现

IListTInsert(Int32, T)

异常

ArgumentOutOfRangeExceptionindex is not a valid index in the IListT.
NotSupportedExceptionThe IListT is read-only.

参见