M_Cyjb_Collections_BitList_LastIndexOf_1 - CYJB/Cyjb GitHub Wiki
确定 BitList 中特定项最后一次出现的索引。
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public int LastIndexOf(
bool item,
int startIndex
)
- item
- Type: System.Boolean
要在 BitList 中定位的对象。 - startIndex
- Type: System.Int32
要定位的起始索引。
Type: Int32
如果在 BitList 中找到 item, 则为该项最后一次出现的索引;否则为 -1
。
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | startIndex 超出了当前列表的有效范围。 |