EnumerableExtensionsAverage(IEnumerableUBinarySize) Method

Computes the average of a sequence of UBinarySize values.

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.2.0+20f0bdf981c7baf115c68ccab612b1a031efcb4d
C#
public static UBinarySize Average(
	this IEnumerable<UBinarySize> source
)

Parameters

source  IEnumerableUBinarySize
A sequence of UBinarySize values to calculate the average of.

Return Value

UBinarySize
The average of the values in the sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableUBinarySize. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionsource is .
InvalidOperationExceptionsource contains no elements.

See Also