3
Answers

Help with LINQ, selecting from a lit

Peter

Peter

13y
2.5k
1

Hi
I have a list of strings, from which I wish to select unique values.
For example, my list might be:
[user=Peter][count=13]
[user=Peter][count=2]
[user=Colin][count=3]
[user=Sue][count=7]
[user=Sue][count=9]
I want to obtain a result list that contains a list of unique "users"; for example a result that looks like:
Peter
Colin
Sue
Can someone help with a LINQ for this?
Thanks for any help,
Peter
 
 
Answers (3)