M_Cyjb_Collections_BitList_InsertRange_3 - CYJB/Cyjb GitHub Wiki

BitList.InsertRange 方法 (Int32, IEnumerable(UInt32))

将指定集合中的元素插入 BitList 的指定索引处。

Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public BitList InsertRange(
	int index,
	IEnumerable<uint> collection
)

参数

 

index
Type: System.Int32
应在此处插入新元素的从零开始的索引。
collection
Type: System.Collections.Generic.IEnumerable(UInt32)
一个集合,应将其元素插入到 BitList 中,其中每个整数表示 32 个连续位。

返回值

Type: BitList
当前 BitList 集合。

Exceptions

 

异常 条件
ArgumentNullException collectionnull
ArgumentOutOfRangeException index 小于 0
ArgumentOutOfRangeException index 大于 Count

参见

Reference

BitList 类
InsertRange 重载
Cyjb.Collections 命名空间

⚠️ **GitHub.com Fallback** ⚠️