Wednesday, September 23, 2009

Get comma (or any character) delimited string from String Array

If you have stringArray as string array and you want a comma delimited string then don’t apply any self logic. Optimize function is given in .Net. Following is the code snippet in C#.Net

string delimitedString = string.Join(",", stringArray);

No comments:

Post a Comment