M_Cyjb_Collections_BitList_InsertRange_1 - CYJB/Cyjb GitHub Wiki
将指定集合中的元素插入 BitList 的指定索引处。
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public BitList InsertRange(
int index,
IEnumerable<byte> collection
)
- index
- Type: System.Int32
应在此处插入新元素的从零开始的索引。 - collection
- Type: System.Collections.Generic.IEnumerable(Byte)
一个集合,应将其元素插入到 BitList 中,其中每个整数表示 8 个连续位。
异常 | 条件 |
---|---|
ArgumentNullException |
collection 为 null 。 |
ArgumentOutOfRangeException |
index 小于 0 。 |
ArgumentOutOfRangeException | index 大于 Count。 |