LINQ_Max()

IEnumerable::LINQ_Max(const Func<T, ResultType>&) method

Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.

template<typename ResultType> ResultType System::Collections::Generic::IEnumerable<T>::LINQ_Max(const Func<T, ResultType> &selector)

Template parameters

ParameterDescription
ResultTypeThe type of the value returned by selector.

Arguments

ParameterTypeDescription
selectorconst Func<T, ResultType>&A transform function to apply to each element.

Return Value

The maximum value in the sequence.

IEnumerable::LINQ_Max(const Func<Source, ResultType>&) method

template<typename ResultType> ResultType System::Collections::Generic::IEnumerable<T>::LINQ_Max(const Func<Source, ResultType> &selector)

See Also