Computes the sum of a sequence of
Nullable T values.
If the source sequence represents an infinite set or series, this will never return!
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntaxpublic static Nullable<BigInteger> Sum(
this ISequence<Nullable<BigInteger>> source
)
public static Nullable<BigInteger> Sum(
this ISequence<Nullable<BigInteger>> source
)
<ExtensionAttribute>
Public Shared Function Sum (
source As ISequence(Of Nullable(Of BigInteger))
) As Nullable(Of BigInteger)
<ExtensionAttribute>
Public Shared Function Sum (
source As ISequence(Of Nullable(Of BigInteger))
) As Nullable(Of BigInteger)
public:
[ExtensionAttribute]
static Nullable<BigInteger> Sum(
ISequence<Nullable<BigInteger>>^ source
)
public:
[ExtensionAttribute]
static Nullable<BigInteger> Sum(
ISequence<Nullable<BigInteger>>^ source
)
static member Sum :
source : ISequence<Nullable<BigInteger>> -> Nullable<BigInteger>
static member Sum :
source : ISequence<Nullable<BigInteger>> -> Nullable<BigInteger>
Parameters
- source
- Type: Sequences ISequence Nullable BigInteger
A sequence of Nullable T values to calculate the sum of.
Return Value
Type:
Nullable BigInteger The sum 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
ISequence Nullable BigInteger . 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).
See Also