In the below example, how can I easily convert eventScores to List so that I can use it as a parameter for prettyPrint?
eventScores
List
prettyPrint
You'd use the ToList extension:
var evenScores = scores.Where(i => i % 2 == 0).ToList();