Tip-Convert array to Comma delimited string

added by jalpesh
1/27/2013 2:43:31 AM

0 Kicks, 63 Views

was needed to convert an string array into the comma delimited string and the old way to do that is too with for loop. But I was sure that there should be some ready made function that will do this very easily. After doing some research I have found string.Join. With the help of this we can easily an array into the comma delimited string. String.join have two arguments one is separator and other one is either array or enumerable.