This documentation is archived and is not being maintained.

# Dictionary<TKey, TValue>.Sum Method

**Visual Studio 2008**

Computes the sum of a sequence of numeric values.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Name | Description | |
---|---|---|

Sum(Func<KeyValuePair<TKey, TValue>, Int32>) | Computes the sum of the sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Computes the sum of the sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Int64>) | Computes the sum of the sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Computes the sum of the sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Single>) | Computes the sum of the sequence of Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Computes the sum of the sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Double>) | Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Decimal>) | Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) | |

Sum(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.) |

Show: