Mid LINQ

Select department names that start with ‘F’?

Select department names that start with ‘F’

var deptNames = departments

.Where(d => d.Name.StartsWith("F"))

.Select(d => d.Name);

More from LINQ Tutorial

All questions for this course