ho questoIEqualityComparer per tipo anonimo
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(););
vorrei fare questo se si dove consentito
n = n.Distinct((x, y) => x.Vchr == y.Vchr)).ToList();
Ho provato ad utilizzare il generico LambdaComparer ma dal momento che im utilizzando tipi anonimi non v'è alcun tipo associarlo con.
"Aiutami Obi Wan Kenobi, sei la mia unica speranza"
Ottima domanda, stavo solo cercando la stessa cosa. Incredibile non è nella libreria standard. – orip
Potrebbe essere d'aiuto [Avvolgere un delegato in un IEqualityComparer] (http://stackoverflow.com/questions/98033/wrap-a-delegate-in-an-iequalitycomparer) – marbel82