如何将以下字典转换为Channel对象列表?我尝试了ToList()方法,但我似乎无法让它工作.
List<Items> items = new List<Items>();
Dictionary<int, Items> foundItems =
statsCont.OrderByDescending(x => x.Value.NumberOfItems)
.Take(10)
as Dictionary<int, Items>;
Run Code Online (Sandbox Code Playgroud)