編集

次の方法で共有


ImmutableArray<T>.LastIndexOf Method

Definition

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
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
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
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
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