ImmutableList<T>.Builder.IndexOf Método
Definição
Sobrecargas
| IndexOf(T) |
Pesquisa o objeto especificado e retorna o índice baseado em zero da primeira ocorrência dentro do intervalo de elementos na lista imutável.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list. |
| IndexOf(T, Int32) |
Procura o objeto especificado e retorna o índice baseado em zero da primeira ocorrência dentro do intervalo de elementos na lista imutável que se estende do índice especificado até o último elemento.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element. |
| IndexOf(T, Int32, Int32) |
Pesquisa o objeto especificado e retorna o índice baseado em zero da primeira ocorrência em um intervalo de elementos na lista imutável que começa no índice especificado e contém o número de elementos especificado.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that starts at the specified index and contains the specified number of elements. |
| IndexOf(T, Int32, Int32, IEqualityComparer<T>) |
Pesquisa o objeto especificado e retorna o índice baseado em zero da primeira ocorrência em um intervalo de elementos no ImmutableList<T>.Builder que começa no índice especificado e contém o número de elementos especificado.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ImmutableList<T>.Builder that starts at the specified index and contains the specified number of elements. |
IndexOf(T)
Pesquisa o objeto especificado e retorna o índice baseado em zero da primeira ocorrência dentro do intervalo de elementos na lista imutável.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list.
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 objeto a ser localizado na lista imutável.The object to locate in the immutable list. O valor pode ser null para tipos de referência.The value can be null for reference types.
Retornos
O índice baseado em zero da primeira ocorrência de item dentro do intervalo de elementos na lista imutável, se encontrado; caso contrário, -1.The zero-based index of the first occurrence of item within the range of elements in the immutable list, if found; otherwise, -1.
Implementações
Aplica-se a
IndexOf(T, Int32)
Procura o objeto especificado e retorna o índice baseado em zero da primeira ocorrência dentro do intervalo de elementos na lista imutável que se estende do índice especificado até o último elemento.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
public:
int IndexOf(T item, int index);
public int IndexOf (T item, int index);
member this.IndexOf : 'T * int -> int
Public Function IndexOf (item As T, index As Integer) As Integer
Parâmetros
- item
- T
O objeto a ser localizado na lista imutável.The object to locate in the immutable list. O valor pode ser null para tipos de referência.The value can be null for reference types.
- index
- Int32
O índice inicial com base em zero da pesquisa.The zero-based starting index of the search. 0 (zero) é válido em uma lista vazia.0 (zero) is valid in an empty list.
Retornos
O índice baseado em zero da primeira ocorrência do item dentro do intervalo de elementos na lista imutável que se estende do index até o último elemento, se encontrado; caso contrário, -1.The zero-based index of the first occurrence of item within the range of elements in the immutable list that extends from index to the last element, if found; otherwise, -1.
Aplica-se a
IndexOf(T, Int32, Int32)
Pesquisa o objeto especificado e retorna o índice baseado em zero da primeira ocorrência em um intervalo de elementos na lista imutável que começa no índice especificado e contém o número de elementos especificado.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that starts at the specified index and contains the specified number of elements.
public:
int IndexOf(T item, int index, int count);
public int IndexOf (T item, int index, int count);
member this.IndexOf : 'T * int * int -> int
Public Function IndexOf (item As T, index As Integer, count As Integer) As Integer
Parâmetros
- item
- T
O objeto a ser localizado na lista imutável.The object to locate in the immutable list. O valor pode ser null para tipos de referência.The value can be null for reference types.
- index
- Int32
O índice inicial com base em zero da pesquisa.The zero-based starting index of the search. 0 (zero) é válido em uma lista vazia.0 (zero) is valid in an empty list.
- count
- Int32
O número de elementos na seção a ser pesquisada.The number of elements in the section to search.
Retornos
O índice baseado em zero da primeira ocorrência do item no intervalo de elementos na lista imutável que começa em index e contém a count de número de elementos, se encontrado; caso contrário, -1.The zero-based index of the first occurrence of item within the range of elements in the immutable list that starts at index and contains count number of elements, if found; otherwise, -1.
Aplica-se a
IndexOf(T, Int32, Int32, IEqualityComparer<T>)
Pesquisa o objeto especificado e retorna o índice baseado em zero da primeira ocorrência em um intervalo de elementos no ImmutableList<T>.Builder que começa no índice especificado e contém o número de elementos especificado.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ImmutableList<T>.Builder that starts at the specified index and contains the specified number of elements.
public:
int IndexOf(T item, int index, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf (T item, int index, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int IndexOf (T item, int index, 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, index As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer
Parâmetros
- item
- T
O objeto a ser localizado na lista imutável.The object to locate in the immutable list. O valor pode ser null para tipos de referência.The value can be null for reference types.
- index
- Int32
O índice inicial com base em zero da pesquisa.The zero-based starting index of the search. 0 (zero) é válido em uma lista vazia.0 (zero) is valid in an empty list.
- count
- Int32
O número de elementos a serem pesquisados.The number of elements to search.
- equalityComparer
- IEqualityComparer<T>
O comparador de valor a ser usado para comparar a igualdade de elementos.The value comparer to use for comparing elements for equality.
Retornos
O índice baseado em zero da primeira ocorrência do item no intervalo de elementos na lista imutável que começa em index e contém a count de número de elementos, se encontrado; caso contrário, -1The zero-based index of the first occurrence of item within the range of elements in the immutable list that starts at index and contains count number of elements, if found; otherwise, -1