【发布时间】:2010-02-24 02:59:12
【问题描述】:
有没有一种快速的方法可以从通过IEnumerable<TElement> 扩展创建的ILookup<TKey, TElement> 获得扁平化的List<TElement>?
更新示例
List<int> list = new List<int>();
var lookup = list.ToLookup(key => key);
list = lookup.?? // How to convert the lookup back to the list
【问题讨论】: