Logo

Programming-Idioms

History of Idiom 53 > diff from v28 to v29

Edit summary for version 29 by :
New Csharp implementation by user [zehberk]

Version 28

2016-02-16, 16:34:38

Version 29

2016-02-16, 18:00:02

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Code
string y = string.Join(", ", x);
Comments bubble
x must be of type IEnumerable<string>
Doc URL
https://msdn.microsoft.com/en-us/library/57a79xd0%28v=vs.110%29.aspx