LINQ_First()

IEnumerable::LINQ_First() method

Returns the first element of a sequence.

T System::Collections::Generic::IEnumerable<T>::LINQ_First()

Return Value

First element in the sequence.

IEnumerable::LINQ_First(const Func<T, bool>&) method

Returns the first element of a sequence that satisfy the specified condition.

T System::Collections::Generic::IEnumerable<T>::LINQ_First(const Func<T, bool> &predicate)

Arguments

ParameterTypeDescription
predicateconst Func<T, bool>&A function to test each element for a condition.

Return Value

First element in the sequence that satisfy the specified condition.

See Also