System::Collections::Generic::IEnumerable::LINQ_Average method

IEnumerable::LINQ_Average() method

Computes the average of a sequence of numeric values.

Source System::Collections::Generic::IEnumerable<Source>::LINQ_Average()

ReturnValue

The average of the values in the sequence.

See Also

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

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

See Also

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

Computes the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

template<typename ResultType> ResultType System::Collections::Generic::IEnumerable<T>::LINQ_Average(const Func<T, ResultType> &selector)
ParameterDescription
ResultTypeThe type of the value returned by selector.
ParameterTypeDescription
selectorconst Func<T, ResultType>&A transform function to apply to each element.

ReturnValue

The average of the projected values.

See Also