IImmutableList<T>.LastIndexOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the IImmutableList<T> that contains the specified number of elements and ends at the specified index.
public:
int LastIndexOf(T item, int index, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int LastIndexOf (T item, int index, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int LastIndexOf (T item, int index, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
abstract member LastIndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function LastIndexOf (item As T, index As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer
Parameters
- item
- T
The object to locate in the list. The value can be null
for reference types.
- index
- Int32
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
- count
- Int32
The number of elements in the section to search.
- equalityComparer
- IEqualityComparer<T>
The equality comparer to match item
.
Returns
Returns Int32.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈