IEqualityComparer para el tipo anónimo
tengo esto
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(););
Me gustaría hacer esto si está permitido
n = n.Distinct((x, y) => x.Vchr == y.Vchr)).ToList();
Traté de usar el genéricoLambdaComparer pero ya que estoy usando tipos anónimos no hay ningún tipo asociado con él.
"Ayúdame Obi Wan Kenobi, eres mi única esperanza"