我似乎想不出如何在不显式调用OrderedDictionary中的每个列表类型的情况下,将具有由子实例列表和包含子实例的元组列表组成的值的orderedDictionary转换为子实例的列表作为其父类型an ammount value of "stacked" objects:
{"Consumables", new List<Tuple<Consumable,in
我有需要在foreach循环中迭代的Dictionary<Key, IList<Days>> days,因此我可以将它转换为Dictionary<Key, IList<string>> days2;我尝试使用以下方法,但编译器不喜欢它(不能转换为元素类型)。foreach(KeyValuePair<string,IList<Days>> kvp in days)//do s