ImmutableList<T>.Find(Predicate<T>) Método
Definição
Pesquisa um elemento que corresponde às condições definidas pelo predicado especificado e retorna a primeira ocorrência em toda a lista imutável.Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire immutable list.
public:
virtual T Find(Predicate<T> ^ match);
public:
T Find(Predicate<T> ^ match);
public T Find (Predicate<T> match);
public T? Find (Predicate<T> match);
abstract member Find : Predicate<'T> -> 'T
override this.Find : Predicate<'T> -> 'T
member this.Find : Predicate<'T> -> 'T
Public Function Find (match As Predicate(Of T)) As T
Parâmetros
- match
- Predicate<T>
O delegado que define as condições do elemento a ser pesquisado.The delegate that defines the conditions of the element to search for.
Retornos
- T
O primeiro elemento que corresponde às condições definidas pelo predicado especificado, se encontrado; caso contrário, o valor padrão para o tipo T.The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T.