Mid LINQ

Convert list of salaries to array?

Convert list of salaries to array

double[] salaryArray = employees

.Select(e => e.Salary)

.ToArray();

More from LINQ Tutorial

All questions for this course