EnumerableExtensionsSum(IEnumerableBinarySize) Method
Computes the sum of a sequence of
BinarySize values.
Namespace: OokiiAssembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.0.0+877c9712c6435bf9adfdb0683d7a434c5604a8f2
public static BinarySize Sum(
this IEnumerable<BinarySize> source
)
<ExtensionAttribute>
Public Shared Function Sum (
source As IEnumerable(Of BinarySize)
) As BinarySize
public:
[ExtensionAttribute]
static BinarySize Sum(
IEnumerable<BinarySize>^ source
)
[<ExtensionAttribute>]
static member Sum :
source : IEnumerable<BinarySize> -> BinarySize
- source IEnumerableBinarySize
-
A sequence of BinarySize values to calculate the sum of.
BinarySizeThe sum 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
IEnumerableBinarySize. 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).
This method returns zero if source contains no elements.