Mid LINQ

Print all names in single comma-separated string?

Print all names in single comma-separated string

string result = string.Join(", ", employees.Select(e => e.Name));

Follow :

More from LINQ Tutorial

All questions for this course