Skip to content

M_Cyjb_Collections_BitList_Resize

CYJB edited this page Mar 20, 2024 · 13 revisions

BitList.Resize 方法

将当前列表调整为指定的新大小。

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

语法

C#

public BitList Resize(
	int newCount,
	bool defaultValue = false
)

参数

 

newCount
Type: System.Int32
要调整到的大小。
defaultValue (Optional)
Type: System.Boolean
扩展列表大小时的默认值。

返回值

Type: BitList
调整后的当前列表。

Exceptions

 

异常 条件
ArgumentOutOfRangeException newCount 小于零。

参见

Reference

BitList 类
Cyjb.Collections 命名空间

Clone this wiki locally