Select()
Select() projects data into another form.
Example
var names = employees
.Select(x => x.Name);
Output
Returns only employee names.
Interview Tips
Select() is used for Projection.
Select() projects data into another form.
var names = employees
.Select(x => x.Name);
Returns only employee names.
Select() is used for Projection.