Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要过滤这个列表。 我只想让那些具有相同 SalId 的人必须至少有两个。
我该怎么做?
var dupSalIdPersons = persons .GroupBy(p => p.SalId) .Where(g => g.Count() >= 2) .SelectMany(g => g);