Creating a comma separated list from IList<string> or IEnumerable<string>
Posted
by Daniel Fortunov
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Fortunov
Published on 2009-04-28T19:15:58Z
Indexed on
2010/06/18
2:43 UTC
Read the original article
Hit count: 375
What is the cleanest way to create a comma-separated list of string values from an IList<string>
or IEnumerable<string>
?
String.Join(...)
operates on a string[]
so can be cumbersome to work with when types such as IList<string>
or IEnumerable<string>
cannot easily be converted into a string array.
© Stack Overflow or respective owner