M_Cyjb_Collections_BitList_Fill - CYJB/Cyjb GitHub Wiki

BitList.Fill 方法

填充指定范围中的元素。

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

语法

C#

public BitList Fill(
	int index,
	int length,
	bool value
)

参数

 

index
Type: System.Int32
要填充的范围的从零开始的起始索引。
length
Type: System.Int32
要填充的范围内的元素数。
value
Type: System.Boolean
要填充的值。

返回值

Type: BitList
当前 BitList 集合。

Exceptions

 

异常 条件
ArgumentOutOfRangeException index 小于 0
ArgumentOutOfRangeException length 小于 0
ArgumentException indexlength 不表示 BitList 中元素的有效范围。

参见

Reference

BitList 类
Cyjb.Collections 命名空间

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