public static ValueTask<UBinarySize?> SumAsync(
this IAsyncEnumerable<UBinarySize?> source,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function SumAsync (
source As IAsyncEnumerable(Of UBinarySize?),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of UBinarySize?)
public:
[ExtensionAttribute]
static ValueTask<Nullable<UBinarySize>> SumAsync(
IAsyncEnumerable<Nullable<UBinarySize>>^ source,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member SumAsync :
source : IAsyncEnumerable<Nullable<UBinarySize>> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<Nullable<UBinarySize>>
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 UBinarySizeMaxValue. |