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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈