Possible Duplicate:
Linq - Top value form each group
I have data in the following structure:
var lookupDictionary = new Dictionary<string, Dictionary<string, double>>();
I'm trying to write a Linq query to give me the Top 10 keys from the outer dictionary by summing up and ordering descending the doubles in the inner dictionary. I have a good grasp on group by
in SQL, but struggle converting that to Linq.
Any Linq experts that can demonstrate this type of query?