EnumerableExtensionsAverageTSource(IEnumerableTSource, FuncTSource, UBinarySize) Method
            Computes the average of a sequence of 
UBinarySize values that are obtained by
            invoking a transform function on each element of the input sequence.
            
Namespace: OokiiAssembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.2.0+20f0bdf981c7baf115c68ccab612b1a031efcb4d
public static UBinarySize Average<TSource>(
	this IEnumerable<TSource> source,
	Func<TSource, UBinarySize> selector
)
<ExtensionAttribute>
Public Shared Function Average(Of TSource) ( 
	source As IEnumerable(Of TSource),
	selector As Func(Of TSource, UBinarySize)
) As UBinarySize
public:
[ExtensionAttribute]
generic<typename TSource>
static UBinarySize Average(
	IEnumerable<TSource>^ source, 
	Func<TSource, UBinarySize>^ selector
)
[<ExtensionAttribute>]
static member Average : 
        source : IEnumerable<'TSource> * 
        selector : Func<'TSource, UBinarySize> -> UBinarySize 
- source  IEnumerableTSource
 - 
            A sequence of values to calculate the average of.
            
 - selector  FuncTSource, UBinarySize
 - A transform function to apply to each element.
 
- TSource
 - The type of the elements of source.
 
UBinarySizeThe average of the values in the sequence.In Visual Basic and C#, you can call this method as an instance method on any object of type 
IEnumerableTSource. 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).