ImmutableArray<T>.Builder.LastIndexOf Method
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.
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. |
- Source:
- ImmutableArray_1.Builder.cs
- 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
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- ImmutableArray_1.Builder.cs
- 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
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- ImmutableArray_1.Builder.cs
- 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
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- ImmutableArray_1.Builder.cs
- 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.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: