Convert a Comma Delimited String to an Array in C#


String.Join method comes handy, when we need to convert an array into a comma delimited strings or vice versa. 

The folloing code snippet shows how to convert an array to a comma delimited string.
String[] array= {"once", "upon", "a", "time"};
String seperator   = ", ";
String result = String.Join(seperator, array);

Next Recommended Readings