I tried to append the items in a List<string>
to a StringBuilder
with LINQ:
items.Select(i => sb.Append(i + ","));
I found a similar question here which explains why the above doesn't work, but I couldn't find an Each
of ForEach
or anything similar on List
which I could use instead.
Is there a neat way of doing this in a one-liner?