Mid LINQ

Select anonymous object with calculated tax?

Select anonymous object with calculated tax

var taxed = employees.Select(e => new {

e.Name,

Tax = e.Salary * 0.1

});

More from LINQ Tutorial

All questions for this course