Пример #1
0
        public Employee BestEmployee()
        {
            Employee bestEmployee = EmployeesList.Aggregate((i1, i2) => i1.Salary > i2.Salary ? i1 : i2);

            return(bestEmployee);
        }