My fantastic Webdings Logo

Reamped.NET

It's not that bad


LINQ Distinct, a DataTable and the IEqualityComparer<T>

In a recent situation I was trying to pull some aggregates out of a DataTable using LINQ. I needed to get the rows of the DataTable with a Distinct clause, but my aggregates would be on other columns of the row. The problem is that when you call LINQ's Distinct() extension method with no argum... [More]