Sunday, March 29, 2015

Trying to find duplicate scores in a list

I'm not too flash with LINQ, but I'm fairly sure that the method that you are after is FindAll (because you want to find all the competitors with a particular score). I think it should be something like so...


var duplicates = People.Findall(s=> s.FinalScore == winScore);


... or something like that.

No comments:

Post a Comment