ImmutableList.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>(IImmutableList<T>, T) |
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list. |
LastIndexOf<T>(IImmutableList<T>, T, IEqualityComparer<T>) |
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list. |
LastIndexOf<T>(IImmutableList<T>, T, Int32) |
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index. |
LastIndexOf<T>(IImmutableList<T>, T, Int32, Int32) |
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index. |
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T -> int
<Extension()>
Public Function LastIndexOf(Of T) (list As IImmutableList(Of T), item As T) As Integer
Type Parameters
- T
The type of items in the list.
Parameters
- list
- IImmutableList<T>
The list to search.
- item
- T
The object to locate in the Immutable list. The value can be null for reference types.
Returns
The zero-based index of the last occurrence of item within the entire the Immutable list, if found; otherwise, -1.
Applies to
.NET 10 y otras versiones
Producto | Versiones |
---|---|
.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:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * System.Collections.Generic.IEqualityComparer<'T> -> int
<Extension()>
Public Function LastIndexOf(Of T) (list As IImmutableList(Of T), item As T, equalityComparer As IEqualityComparer(Of T)) As Integer
Type Parameters
- T
The type of items in the list.
Parameters
- list
- IImmutableList<T>
The list to search.
- item
- T
The object to locate in the Immutable list. The value can be null for reference types.
- equalityComparer
- IEqualityComparer<T>
The equality comparer to use in the search.
Returns
The zero-based index of the last occurrence of item within the entire the Immutable list, if found; otherwise, -1.
Applies to
.NET 10 y otras versiones
Producto | Versiones |
---|---|
.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:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int -> int
<Extension()>
Public Function LastIndexOf(Of T) (list As IImmutableList(Of T), item As T, startIndex As Integer) As Integer
Type Parameters
- T
The type of items in the list.
Parameters
- list
- IImmutableList<T>
The list to search.
- item
- T
The object to locate in the Immutable list. The value can be null for reference types.
- startIndex
- Int32
The zero-based starting index of the backward search.
Returns
The zero-based index of the last occurrence of item within the range of elements in the Immutable list that extends from the first element to index, if found; otherwise, -1.
Applies to
.NET 10 y otras versiones
Producto | Versiones |
---|---|
.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:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex, int count);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex, int count);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int * int -> int
<Extension()>
Public Function LastIndexOf(Of T) (list As IImmutableList(Of T), item As T, startIndex As Integer, count As Integer) As Integer
Type Parameters
- T
The type of items in the list.
Parameters
- list
- IImmutableList<T>
The list to search.
- item
- T
The object to locate in the Immutable list. The value can be null for reference types.
- startIndex
- Int32
The zero-based starting index of the backward search.
- count
- Int32
The number of elements in the section to search.
Returns
The zero-based index of the last occurrence of item within the range of elements in the Immutable list that extends from the first element to index, if found; otherwise, -1.
Applies to
.NET 10 y otras versiones
Producto | Versiones |
---|---|
.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 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: