これは私のエンティティ コレクションです。
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>>たが、成功しませんでした。