using System.Collections.Generic;
public static void Main()
Dictionary<int, Dictionary<string, double>> dict = new Dictionary<int, Dictionary<string, double>>() {
{0,new Dictionary<string, double> { { "eat",0.15 }, { "food", 0.16 } } },
{1,new Dictionary<string, double> { { "eat",0.32 }, { "food", 0.2 } } }
var result = dict.SelectMany(x => x.Value)
.GroupBy(x => x.Key, y => y.Value, (key, value) => new { value })
.Select(x=>x.value.ToArray().Aggregate((a,b)=>a*b))
Console.WriteLine("The result is : {0}",result);