4 ms·
How do these developers use .Select() then?
by recursive 2y ago
How do these developers use .Select() then?
- progmetaldev 2y agoInto anonymous types mostly, where you can't pass the type to another method. Example: .Select(x => new { Name = x.Name, DepartmentName = x.Department.Name }).ToList(); Same code as I wrote, except capture in an anonymous type. The documentation practically encourages this.