System::Collections::Generic::IEnumerable::LINQ_First method

IEnumerable::LINQ_First() method

Returns the first element of a sequence.

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

ReturnValue

First element in the sequence.

See Also

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)
ParameterTypeDescription
predicateconst Func<T, bool>&A function to test each element for a condition.

ReturnValue

First element in the sequence that satisfy the specified condition.

See Also