Junior LINQ

What is the average salary in IT?

What is the average salary in IT?

double avgSalary = employees

.Where(e => e.Department == "IT")

.Average(e => e.Salary);

More from LINQ Tutorial

All questions for this course