Closed GoogleCodeExporter closed 8 years ago
To use Distinct in LinqToExcel, you have to use a class that corresponds to the
row data.
public class WorksheetRow
{
public string ColA { get; set; }
public string ColB { get; set; }
}
var excel = new ExcelQueryFactory("worksheetFileName");
var distinctNames = (from row in excel.<WorksheetRow>WorkSheet()
select row.ColB).Distinct()
Original comment by paulyo...@gmail.com
on 4 May 2012 at 9:35
Original issue reported on code.google.com by
denny.ma...@gmail.com
on 4 May 2012 at 7:13Attachments: