M_Cyjb_Collections_BitList_IndexOf_2 - CYJB/Cyjb GitHub Wiki

BitList.IndexOf 方法 (Boolean, Int32)

确定 BitList 中特定项的索引。

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

语法

C#

public int IndexOf(
	bool item,
	int startIndex
)

参数

 

item
Type: System.Boolean
要在 BitList 中定位的对象。
startIndex
Type: System.Int32
要定位的起始索引。

返回值

Type: Int32
如果在 BitList 中找到 item, 则为该项的索引;否则为 -1

Exceptions

 

异常 条件
ArgumentOutOfRangeException startIndex 超出了当前列表的有效范围。

参见

Reference

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

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