string[]words = new string[]{"hello","world"};string concatenated = words.Aggregate((w,n) => w + " " + n);
Returns "hello world"
I much prefer string.join to accomplish this.string.Join(" ", words);
Post a Comment
1 comment:
I much prefer string.join to accomplish this.
string.Join(" ", words);
Post a Comment