Convert a string array to a concatenated string in C#

Viewed 43041

Is there an easy way to convert a string array into a concatenated string?

For example, I have a string array:

new string[]{"Apples", "Bananas", "Cherries"};

And I want to get a single string:

"Apples,Bananas,Cherries"

Or "Apples&Bananas&Cherries" or "Apples\Bananas\Cherries"

4 Answers
Related