Lambda表达式,挑出重复的数据

2025-04-30 15:34:44
推荐回答(1个)
回答1:

试试这样
var newData = data.where( d1 => data.count(d2 => d2.url == d1.url) > 1)
手写代码,理解思想