Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C++
same id different name distinct Id using in LINQ
Forexample

1    vijay   komal
     raja    chennai
     kumar   mayavaram
     suba    trichy
Posted
Updated 10-Jun-11 4:08am
v3
Comments
Sergey Alexandrovich Kryukov 11-Jun-11 1:02am    
Lazy? Any effort? Not a question. My 1.
--SA

C++
var distinctperson = from person in people.Distinct(p => p.name)
 
Share this answer
 
You are looking for something like this

collection.Distinct(person => person.ID)

or similar. I think you should provid more information as to the type of collection and the properties of the underlying class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900