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. |
The sum of the values, or null
if any value is null
.
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. |
The sum of the values, or null
if any value is null
.