EnumerableUtility.NullableSum method (1 of 2)

Returns the sum of a sequence of nullable values.

public static int? NullableSum(this IEnumerable<int?> values)
parameter description
values A sequence of nullable values.

Return Value

The sum of the values, or null if any value is null.

See Also


EnumerableUtility.NullableSum method (2 of 2)

Returns the sum of a sequence of nullable values.

public static long? NullableSum(this IEnumerable<long?> values)
parameter description
values A sequence of nullable values.

Return Value

The sum of the values, or null if any value is null.

See Also