Mid LINQ

Check if a department has more than 2 employees?

Check if a department has more than 2 employees?

bool deptCheck = employees

.Count(e => e.Department == "IT") > 2;

More from LINQ Tutorial

All questions for this course