📅  最后修改于: 2022-03-11 14:56:59.885000             🧑  作者: Mango
var query = lst.GroupBy(x => x)
.Where(g => g.Count() > 1)
.Select(y => new { Element = y.Key, Counter = y.Count() })
.ToList();