Mid LINQ

Are there any employees in “Legal” department?

Are there any employees in “Legal” department?

bool anyLegal = employees.Any(e => e.Department == "Legal");

More from LINQ Tutorial

All questions for this course