using System.Collections.Generic;
public static void Main(string[] args)
List<CostCenter> cc = new List<CostCenter>();
cc.Add(new CostCenter("a", "70", new DateTime(2019, 11, 10)));
cc.Add(new CostCenter("b", "30", new DateTime(2019, 11, 10)));
cc.Add(new CostCenter("A", "40", new DateTime(2019, 11, 05)));
cc.Add(new CostCenter("B", "60", new DateTime(2019, 11, 05)));
cc.Add(new CostCenter("XX", "10", new DateTime(2019, 11, 01)));
cc.Add(new CostCenter("YY", "90", new DateTime(2019, 11, 01)));
cc.Add(new CostCenter("100", "50", new DateTime(2009, 07, 03)));
cc.Add(new CostCenter("110", "50", new DateTime(2009, 07, 03)));
DateTime threshold = new DateTime(2010, 11, 01);
List<CostCenter> result = cc.Where(x => x.start.Date > threshold.Date).ToList();
foreach (var item in result)
Console.WriteLine("center: " + item.center + " Percentage: " + item.percentage + " start: " + item.start);
public string percentage;
public CostCenter(string c, string p, DateTime dt)