ImmutableArray<T>.Builder.IndexOf Método

Definição

Sobrecargas

IndexOf(T, Int32, Int32)

Determina o índice do item especificado.Determines the index of the specified item.

IndexOf(T, Int32, Int32, IEqualityComparer<T>)

Determina o índice para o item especificado.Determines the index for the specified item.

IndexOf(T)

Determina o índice de um item específico na matriz.Determines the index of a specific item in the array.

IndexOf(T, Int32)

Determina o índice do item especificado.Determines the index of the specified item.

IndexOf(T, Int32, Int32)

Determina o índice do item especificado.Determines the index of the specified item.

public:
 int IndexOf(T item, int startIndex, int count);
public int IndexOf (T item, int startIndex, int count);
member this.IndexOf : 'T * int * int -> int
Public Function IndexOf (item As T, startIndex As Integer, count As Integer) As Integer

Parâmetros

item
T

O item a ser localizado na matriz.The item to locate in the array.

startIndex
Int32

A posição inicial da pesquisa.The starting position of the search.

count
Int32

O número de elementos a serem pesquisados.The number of elements to search.

Retornos

Int32

O índice de item se for encontrado na lista; caso contrário, -1.The index of item if it's found in the list; otherwise, -1.

Aplica-se a

IndexOf(T, Int32, Int32, IEqualityComparer<T>)

Determina o índice para o item especificado.Determines the index for the specified item.

public:
 int IndexOf(T item, int startIndex, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int IndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.IndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function IndexOf (item As T, startIndex As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer

Parâmetros

item
T

O item a ser localizado na matriz.The item to locate in the array.

startIndex
Int32

O índice no qual iniciar a pesquisa.The index at which to begin the search.

count
Int32

A posição inicial da pesquisa.The starting position of the search.

equalityComparer
IEqualityComparer<T>

O comparador de igualdade a ser usado na pesquisaThe equality comparer to use in the search

Retornos

Int32

O índice de item se for encontrado na lista; caso contrário, -1.The index of item if it's found in the list; otherwise, -1.

Aplica-se a

IndexOf(T)

Determina o índice de um item específico na matriz.Determines the index of a specific item in the array.

public:
 virtual int IndexOf(T item);
public int IndexOf (T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer

Parâmetros

item
T

O item a ser localizado na matriz.The item to locate in the array.

Retornos

Int32

O índice de item se for encontrado na lista; caso contrário, -1.The index of item if it's found in the list; otherwise, -1.

Implementações

Aplica-se a

IndexOf(T, Int32)

Determina o índice do item especificado.Determines the index of the specified item.

public:
 int IndexOf(T item, int startIndex);
public int IndexOf (T item, int startIndex);
member this.IndexOf : 'T * int -> int
Public Function IndexOf (item As T, startIndex As Integer) As Integer

Parâmetros

item
T

O item a ser localizado na matriz.The item to locate in the array.

startIndex
Int32

A posição inicial da pesquisa.The starting position of the search.

Retornos

Int32

O índice de item se for encontrado na lista; caso contrário, -1.The index of item if it's found in the list; otherwise, -1.

Aplica-se a