I want to get the total number of items in the List
s in the following Dictionary
:
Dictionary<int, List<string>> dd = new Dictionary<int, List<string>>() {
{1, new List<string> {"cem"}},
{2, new List<string> {"cem", "canan"}},
{3, new List<string> {"canan", "cenk", "cem"}}
};
// This only returns an enumerated array.
var i = (from c in dd
select c.Value.Count).Select(p=>p);