I have two dictionaries with the same structure:
Dictionary foo = new Dictionary()
{
{\"Table\", 5 },
{\"Chair
I wrote a little extension method that will merge a list of dictionaries with Int values. I used code from this question to do it so I am sharing
public static Dictionary MergeIntDictionary( this ICollection> source )
{
return source.Aggregate( ( cur, next ) => cur.Concat( next )
.GroupBy( o => o.Key )
.ToDictionary( item => item.Key, item => item.Sum( o => o.Value ) ) );
}