📅  最后修改于: 2022-03-11 14:57:37.855000             🧑  作者: Mango
代码示例1
Dictionary> myDictionary = ListOfCustomObjects
.GroupBy(o => o.PropertyName)
.ToDictionary(g => g.Key, g => g.ToList());