Пример #1
0
 private int GetClosestYear(DateTime t1)
 {
     return(Years.Aggregate((x, y) => Math.Abs(x - t1.Year) <= Math.Abs(y - t1.Year) ? x : y));
 }