Bee Eee Blog

c# joining an array of strings.

by brian on Apr.14, 2008, under .NET, c#, coding

Here the easy way to get comma’s between each of the items in an array in a string.

string[] string_array=new string[]{"1","2","3","4"};
String.Join(",",string_array)

The output is:

1,2,3,4
:, ,
No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...