Peter

Peter

  • NA
  • 14
  • 26.1k

Help with LINQ, selecting from a lit

Feb 14 2011 4:58 PM

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)