Concatenate an array of strings into a single C# with Example



Concatenate an array of strings into a single C# with Example

string 
The System.String.Join method allows to concatenate all elements in a string array, using a specified separator 
between each element: 
string[] words = {"One", "Two", "Three", "Four"}; 
string singleString = String.Join(",", words); // singleString = "One,Two,Three,Four" 

0 Comment's

Comment Form

Submit Comment