Dictionary<string, List<CustomObject>>  dic= objList
    .GroupBy(o => o.PropertyName)
    .ToDictionary(g => g.Key, g => g.ToList());

相关文章:

  • 2021-09-17
  • 2021-12-25
  • 2022-12-23
  • 2022-01-19
  • 2021-08-10
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-12-10
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案