LINQ: How do I concatenate a list of integers into comma delimited string?
Posted
by Haoest
on Stack Overflow
See other posts from Stack Overflow
or by Haoest
Published on 2010-05-26T23:32:11Z
Indexed on
2010/05/26
23:41 UTC
Read the original article
Hit count: 160
It's probably something silly I missed, but I try to concatenate a list of integers instead of summing them with:
integerArray.Aggregate((accumulator, piece) => accumulator+"," + piece)
The compiler complained about argument error. Is there a slick way to do this without having to go through a loop?
© Stack Overflow or respective owner