How do I convert an Array to a Comma Delimited String
How do I convert an Array to a Comma Delimited String
By August 01, 2005
By August 01, 2005
This how do I shows how to convert an array to a comma delimited string.
String.Join method comes handy, when we need to concatenate an array into a string of seperators.
The folloing code snippet shows how to convert an array to a comma seperated string.
String[] array= {"once", "upon", "a", "time"};
String seperator = ", ";
String result = String.Join(seperator, array);
From:
http://www.c-sharpcorner.com/UploadFile/mahesh/ArrayToCommaDelimitedString10272005130153PM/ArrayToCommaDelimitedString.aspx?ArticleID=66b0d5c4-6424-45c8-96ca-6b98ed6ca165