这是我的实体集合。
Dictionary<string, List<Dictionary<string, string>>> EntityCollection = new Dictionary<string, List<Dictionary<string, string>>>();
当我收到 中的值时EntityCollection,我想过滤它。
var filtered = from entity in EntityCollection
where entity.Key == entityId
select entity.Value;
现在我只想要entity.value. 所以我创建了一个变量:
List<Dictionary<string, string>> entityDetails = new List<Dictionary<string, string>>();
我怎样才能filtered投到entityDetails?
我试过了filtered.ToList<Dictionary<string, string>>,但没有成功。