M_Cyjb_Collections_ValueList_1_Insert - CYJB/Cyjb GitHub Wiki
将多个元素插入当前列表的指定索引处。
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public void Insert(
int index,
ReadOnlySpan<T> items
)
- index
- Type: System.Int32
从零开始的索引,应在该位置插入 items。 - items
- Type: System.ReadOnlySpan(T)
要插入到当前列表中的多个元素。
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | index 不是当前列表中的有效索引。 |