M_Cyjb_Collections_BitList__ctor_6 - CYJB/Cyjb GitHub Wiki

BitList 构造函数 (Int32, Boolean)

初始化 BitList 类的新实例,该实例包含指定数目的位值,并设定为指定的初始值。

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

语法

C#

public BitList(
	int length,
	bool defaultValue
)

参数

 

length
Type: System.Int32
BitList 中的位值数目。
defaultValue
Type: System.Boolean
要分配给每个位值的布尔值。

Exceptions

 

异常 条件
ArgumentOutOfRangeException length 小于 0

参见

Reference

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

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