using System.Collections.Generic;
public static void Main()
var things = new List<Thing>();
things.Add(new Thing {Value = 1});
things.Add(new Thing {Value = 2});
things.Add(new Thing {Value = 3});
things.Add(new Thing {Value = 4});
var thingsOverTwo = things.Where(x => x.Value > 2).Count();
var valuesOverOne = things.Where(x => x.Value > 1).Select(x => x.Value).ToList();
var largestValue = things.Max(x => x.Value);
var sumsOverOne = valuesOverOne.Sum();
Console.WriteLine($"{nameof(thingsOverTwo)} {thingsOverTwo}");
Console.WriteLine($"{nameof(valuesOverOne)} {valuesOverOne.Count}");
Console.WriteLine($"{nameof(largestValue)} {largestValue}");
Console.WriteLine($"{nameof(sumsOverOne)} {sumsOverOne}");
public int Value {get;set;}