System::Collections::Generic::IEnumerable::LINQ_Max 方法

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

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

另见

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

对通用序列的每个元素调用转换函数,并返回结果中的最大值。

template<typename ResultType> ResultType System::Collections::Generic::IEnumerable<T>::LINQ_Max(const Func<T, ResultType> &selector)
Parameter描述
ResultType选择器返回的值的类型。
ParameterType描述
selectorconst Func<T, ResultType>&对每个元素应用的转换函数。

ReturnValue

序列中的最大值。

另见