LINQ - How to select DISTINCT records from DATASET using LINQ?

Asked By Murali Joshi on 07-Sep-12 12:22 AM
Hi All,

I required to retrieve only distinct records from dataset in c#.

How do I do that? any help will be appreciated.

Thanks in advance.

Murali
Danasegarane Arunachalam replied to Murali Joshi on 07-Sep-12 02:07 AM
Refer MSDN

http://msdn.microsoft.com/en-us/library/system.linq.enumerable.distinct.aspx
Murali Joshi replied to Danasegarane Arunachalam on 07-Sep-12 02:29 AM
Thanks for reply,

but this code only works for custom class objects.
(I need to retrieve distinct records from 'DataSet' object of 'System.Data'.

Thanks,
Murali