I have a class that contains player numbers…
public class Game {
public int blackPlayer { get; set; }
public int whitePlayer { get; set; }
}
and a…
List<Game> games;
I want to know which player number occurs the most in the list (regardless if they played as black or white). Does anyone know a good LINQ expression this?
The following should accomplish your goal: