Enumerable.Average Method

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Computes the average of a sequence of numeric values.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

Name Description
Average(IEnumerable<(Of <(Decimal>)>)) Computes the average of a sequence of Decimal values.
Average(IEnumerable<(Of <(Nullable<(Of <(Decimal>)>)>)>)) Computes the average of a sequence of nullable Decimal values.
Average(IEnumerable<(Of <(Double>)>)) Computes the average of a sequence of Double values.
Average(IEnumerable<(Of <(Nullable<(Of <(Double>)>)>)>)) Computes the average of a sequence of nullable Double values.
Average(IEnumerable<(Of <(Int32>)>)) Computes the average of a sequence of Int32 values.
Average(IEnumerable<(Of <(Nullable<(Of <(Int32>)>)>)>)) Computes the average of a sequence of nullable Int32 values.
Average(IEnumerable<(Of <(Int64>)>)) Computes the average of a sequence of Int64 values.
Average(IEnumerable<(Of <(Nullable<(Of <(Int64>)>)>)>)) Computes the average of a sequence of nullable Int64 values.
Average(IEnumerable<(Of <(Nullable<(Of <(Single>)>)>)>)) Computes the average of a sequence of nullable Single values.
Average(IEnumerable<(Of <(Single>)>)) Computes the average of a sequence of Single values.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Decimal>)>)) Computes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Double>)>)) Computes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Int32>)>)) Computes the average of a sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Int64>)>)) Computes the average of a sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Nullable<(Of <(Decimal>)>)>)>)) Computes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Nullable<(Of <(Double>)>)>)>)) Computes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Nullable<(Of <(Int32>)>)>)>)) Computes the average of a sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Nullable<(Of <(Int64>)>)>)>)) Computes the average of a sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Nullable<(Of <(Single>)>)>)>)) Computes the average of a sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence.
Average<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Single>)>)) Computes the average of a sequence of Single values that are obtained by invoking a transform function on each element of the input sequence.

Top

See Also

Reference

Enumerable Class

Enumerable Members

System.Linq Namespace