Mid LINQ

Get names of employees whose names start with 'A'?

Get names of employees whose names start with 'A'

var namesStartingA = employees

.Where(e => e.Name.StartsWith("A"))

.Select(e => e.Name);

Follow :

More from LINQ Tutorial

All questions for this course