Click or drag to resize

CondensedCollectionExtensionsSum Method (CondensedCollectionNullableInt64)

[This is preliminary documentation and is subject to change.]

Computes the sum of a sequence of nullable Int64 values. Optimized for a CondensedCollection.

Namespace:  Condensed.Linq
Assembly:  Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
public static Nullable<long> Sum(
	this CondensedCollection<Nullable<long>> source
)

Parameters

source
Type: CondensedCondensedCollectionNullableInt64
A CondensedCollection of nullable Int64 values to calculate the sum of.

Return Value

Type: NullableInt64
The sum of the sequence of values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CondensedCollectionNullableInt64. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null
OverflowExceptionThe sum of the elements in the sequence is larger than Int64.MaxValue.
Remarks
See Also