ImmutableList<T>.Builder.FindLastIndex 方法

定义

重载

名称 说明
FindLastIndex(Predicate<T>)

搜索与指定谓词定义的条件匹配的元素,并返回整个不可变列表中最后一个匹配项的从零开始的索引。

FindLastIndex(Int32, Predicate<T>)

搜索与指定谓词定义的条件匹配的元素,并在不可变列表中从第一个元素扩展到指定索引的元素范围内返回最后一个匹配项的从零开始的索引。

FindLastIndex(Int32, Int32, Predicate<T>)

搜索与指定谓词定义的条件匹配的元素,并返回不可变列表中包含指定数量的元素并在指定索引处结束的最后一个匹配项的从零开始的索引。

FindLastIndex(Predicate<T>)

Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs

搜索与指定谓词定义的条件匹配的元素,并返回整个不可变列表中最后一个匹配项的从零开始的索引。

public:
 virtual int FindLastIndex(Predicate<T> ^ match);
public:
 int FindLastIndex(Predicate<T> ^ match);
public int FindLastIndex(Predicate<T> match);
abstract member FindLastIndex : Predicate<'T> -> int
override this.FindLastIndex : Predicate<'T> -> int
member this.FindLastIndex : Predicate<'T> -> int
Public Function FindLastIndex (match As Predicate(Of T)) As Integer

参数

match
Predicate<T>

定义要搜索的元素条件的委托。

返回

如果找到,则为与所定义的 match条件匹配的元素的最后一个匹配项的从零开始的索引;否则为 -1。

适用于

FindLastIndex(Int32, Predicate<T>)

Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs

搜索与指定谓词定义的条件匹配的元素,并在不可变列表中从第一个元素扩展到指定索引的元素范围内返回最后一个匹配项的从零开始的索引。

public:
 virtual int FindLastIndex(int startIndex, Predicate<T> ^ match);
public:
 int FindLastIndex(int startIndex, Predicate<T> ^ match);
public int FindLastIndex(int startIndex, Predicate<T> match);
abstract member FindLastIndex : int * Predicate<'T> -> int
override this.FindLastIndex : int * Predicate<'T> -> int
member this.FindLastIndex : int * Predicate<'T> -> int
Public Function FindLastIndex (startIndex As Integer, match As Predicate(Of T)) As Integer

参数

startIndex
Int32

从零开始的向后搜索索引。

match
Predicate<T>

定义要搜索的元素条件的委托。

返回

如果找到,则为与所定义的 match条件匹配的元素的最后一个匹配项的从零开始的索引;否则为 -1。

适用于

FindLastIndex(Int32, Int32, Predicate<T>)

Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs
Source:
ImmutableList_1.Builder.cs

搜索与指定谓词定义的条件匹配的元素,并返回不可变列表中包含指定数量的元素并在指定索引处结束的最后一个匹配项的从零开始的索引。

public:
 virtual int FindLastIndex(int startIndex, int count, Predicate<T> ^ match);
public:
 int FindLastIndex(int startIndex, int count, Predicate<T> ^ match);
public int FindLastIndex(int startIndex, int count, Predicate<T> match);
abstract member FindLastIndex : int * int * Predicate<'T> -> int
override this.FindLastIndex : int * int * Predicate<'T> -> int
member this.FindLastIndex : int * int * Predicate<'T> -> int
Public Function FindLastIndex (startIndex As Integer, count As Integer, match As Predicate(Of T)) As Integer

参数

startIndex
Int32

从零开始的向后搜索索引。

count
Int32

要搜索的节中的元素数。

match
Predicate<T>

定义要搜索的元素条件的委托。

返回

如果找到,则为与所定义的 match条件匹配的元素的最后一个匹配项的从零开始的索引;否则为 -1。

适用于