find duplicate record from list
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
i have list in which i have object of one class say emp i want to find out all duplicate emp from list meanse if two object with same emp.id how can i do that
-
i have list in which i have object of one class say emp i want to find out all duplicate emp from list meanse if two object with same emp.id how can i do that
nikhil1234 wrote:
how can i do that
Use List<> to store your employee and implement the following -
Distinct(IEqualityComparer<(Of <(T>)>))
You can use your own implementation of IEqualityComparer[^].
Regards, Arindam Sinha MyBlog - http://arindamsinha.wordpress.com/ Please give your feedback on this answer.