Skip to content

M_Cyjb_Collections_BitList_InsertRange

CYJB edited this page Mar 20, 2024 · 13 revisions

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

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

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

语法

C#

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

参数

 

index
Type: System.Int32
应在此处插入新元素的从零开始的索引。
collection
Type: System.Collections.Generic.IEnumerable(Boolean)
一个集合,应将其元素插入到 BitList 中。

返回值

Type: BitList
当前 BitList 集合。

Exceptions

 

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

参见

Reference

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

Clone this wiki locally