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.
