System.Linq.Enumerable.Average Method

Computes the average of a sequence of nullable long values.

Syntax

public static Nullable<double> Average (this IEnumerable<Nullable<long>> source)

Parameters

source
A sequence of nullable long values to calculate the average of.

Returns

The average of the sequence of values, or null if the source sequence is empty or contains only values that are null.

Remarks

In vbprvb query expression syntax, an Aggregate Into Average() clause translates to an invocation of erload:System.Linq.Enumerable.Average.

Requirements

Namespace: System.Linq
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 3.5.0.0, 4.0.0.0