var n = ItemList.Select(s => new { s.Vchr, s.Id, s.Ctr, s.Vendor, s.Description, s.Invoice }).ToList();
n.AddRange(OtherList.Select(s => new { s.Vchr, s.Id, s.Ctr, s.Vendor, s.Description, s.Invoice }).ToList(););
我想,如果它这样做在允许的情况
n = n.Distinct((x, y) => x.Vchr == y.Vchr)).ToList();
我使用通用LambdaComparer但因为即时通讯使用匿名类型的尝试没有类型与之相关联。
“帮我欧比旺·克诺比,你是我唯一的希望”
伟大的问题,我只是在寻找同样的事情。令人难以置信的是它不在标准库中。 – orip 2009-08-06 14:57:21
它可以帮助[包裹在IEqualityComparer中的委托](http://stackoverflow.com/questions/98033/wrap-a-delegate-in-an-iequalitycomparer) – marbel82 2016-10-07 15:10:58