public static ValueTask<BinarySize?> SumAsync(
this IAsyncEnumerable<BinarySize?> source,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function SumAsync (
source As IAsyncEnumerable(Of BinarySize?),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of BinarySize?)
public:
[ExtensionAttribute]
static ValueTask<Nullable<BinarySize>> SumAsync(
IAsyncEnumerable<Nullable<BinarySize>>^ source,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member SumAsync :
source : IAsyncEnumerable<Nullable<BinarySize>> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<Nullable<BinarySize>>
Items in source that are are excluded from the computation of the sum. This method returns zero if source contains no elements or all elements are .
ArgumentNullException | source is . |
OverflowException | The sum is larger than BinarySizeMaxValue. |