ImmutableArray<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.
Overloads
LastIndexOf(T) |
Searches the array for the specified item; starting at the end of the array. |
LastIndexOf(T, Int32) |
Searches the array for the specified item; starting at the end of the array. |
LastIndexOf(T, Int32, Int32) |
Searches the array for the specified item; starting at the end of the array. |
LastIndexOf(T, Int32, Int32, IEqualityComparer<T>) |
Searches the array for the specified item; starting at the end of the array. |
LastIndexOf(T)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Searches the array for the specified item; starting at the end of the array.
public:
int LastIndexOf(T item);
public int LastIndexOf (T item);
member this.LastIndexOf : 'T -> int
Public Function LastIndexOf (item As T) As Integer
Parameters
- item
- T
The item to search for.
Returns
The 0-based index into the array where the item was found; or -1 if it could not be found.
Applies to
LastIndexOf(T, Int32)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Searches the array for the specified item; starting at the end of the array.
public:
int LastIndexOf(T item, int startIndex);
public int LastIndexOf (T item, int startIndex);
member this.LastIndexOf : 'T * int -> int
Public Function LastIndexOf (item As T, startIndex As Integer) As Integer
Parameters
- item
- T
The item to search for.
- startIndex
- Int32
The index at which to begin the search.
Returns
The 0-based index into the array where the item was found; or -1 if it could not be found.
Applies to
LastIndexOf(T, Int32, Int32)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Searches the array for the specified item; starting at the end of the array.
public:
int LastIndexOf(T item, int startIndex, int count);
public int LastIndexOf (T item, int startIndex, int count);
member this.LastIndexOf : 'T * int * int -> int
Public Function LastIndexOf (item As T, startIndex As Integer, count As Integer) As Integer
Parameters
- item
- T
The item to search for.
- startIndex
- Int32
The index at which to begin the search.
- count
- Int32
The number of elements to search.
Returns
The 0-based index into the array where the item was found; or -1 if it could not be found.
Applies to
LastIndexOf(T, Int32, Int32, IEqualityComparer<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Searches the array for the specified item; starting at the end of the array.
public:
virtual int LastIndexOf(T item, int startIndex, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int LastIndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int LastIndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
abstract member LastIndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
override this.LastIndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function LastIndexOf (item As T, startIndex As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer
Parameters
- item
- T
The item to search for.
- startIndex
- Int32
The index at which to begin the search.
- count
- Int32
The number of elements to search.
- equalityComparer
- IEqualityComparer<T>
The equality comparer to use in the search.
Returns
The 0-based index into the array where the item was found; or -1 if it could not be found.
Implements
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기