Submitted by: Srinath M S(srinath_ms@yahoo.com)

Friday Oct 19th 2018 by Srinath M S

Language: .NET, Expertise: Intermediate - Learn how to use the string.join method to concatenate strings with a common delimiter.

To join the objects in a collection, such as a string array, with a common delimiter like a comma or another character, is quite easy with the string.join method. See below for an example:

List<string> stringList = new List<String>() { "John", "Doe"m "Fischer" };

var combinedString = String,Join(",", stringList);
Mobile Site | Full Site