【发布时间】:2011-05-17 09:24:21
【问题描述】:
我现在的解决方案是……
Dictionary<int, List<int>> oDict = <Some code to fill in the dictionary>;
var oList = new List<int>();
oDict.Values.ForEach(oList.AddRange);
oList.ToArray();
有没有办法在不使用额外的List<int> 的情况下做到这一点?
【问题讨论】:
标签: c# arrays dictionary