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.
如何从以下代码中选择整数列表选择分组McID?
McID
machinesVisited.GroupBy(x=> x.McID).
感谢帮助。
var list = machinesVisited.GroupBy(x=> x.McID).Select(g=>g.Key).ToList();