var boughtApples = apples.GroupBy(x => BoughtById);
var boughtCoconuts = coconuts.GroupBy(x => x.BoughtById);
var boughtOranges = oranges.GroupBy(x => x.BoughtById);
我想获取购买所有三件商品的关键值,然后如果避风港购买BoughtById
了全部三件,则将其删除。IGroupings
boughtApples = [1,3,4,5]
boughtCoconuts = [1,2,4,9]
boughtOranges = [6,3,4,10]
输出
boughtApples = [4]
boughtCoconuts = [4]
boughtOranges = [4]