ImmutableArray<T>.Builder.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) |
Determines the 0-based index of the last occurrence of the specified item in this array. |
LastIndexOf(T, Int32) |
Determines the 0-based index of the last occurrence of the specified item in this array. |
LastIndexOf(T, Int32, Int32) |
Determines the 0-based index of the last occurrence of the specified item in this array. |
LastIndexOf(T, Int32, Int32, IEqualityComparer<T>) |
Determines the 0-based index of the last occurrence of the specified item in this array. |
LastIndexOf(T)
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
Determines the 0-based index of the last occurrence of the specified item in this 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 where the item was found; or -1 if it could not be found.
Applies to
LastIndexOf(T, Int32)
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
Determines the 0-based index of the last occurrence of the specified item in this 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 starting position of 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.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
Determines the 0-based index of the last occurrence of the specified item in this 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 starting position of 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.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
Determines the 0-based index of the last occurrence of the specified item in this array.
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);
public int LastIndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member 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 starting position of 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.