Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
string blah = string.Join(",", cities.Select(c=> c.Name));
A short one-line way to convert Array or List of any data into custom string via LINQ
I would just use:string.Join(",", cities.Select(c=>c.Name))Since Version 4 of the Framework there is an overloaded versions of string.Join for IEnumerable too. It uses a StringBuilder internally and doesn't insert a seperator after the last element as well.I could't find the Join method...