This post will discuss how to convert a list of strings into a single string in C#.

The String.Join convenience method lets you concatenate each element in a list to a single string. It takes a separator to be applied between each element in the returned string. If the list contains a single element, the separator is not included. The following example demonstrates this:

Download  Run Code

 
If the source list is not of type String, the String.Join method will implicitly call that object’s ToString() method on each of the items in the list before concatenating them. For example, the following code concatenates all elements of an integer list using ", " as a delimiter and displays the result as a single string.

Download  Run Code

That’s all about converting a list of strings into a single string in C#.