C# Program to Convert a List to a comma separated string
In this C# program, we will see how to Convert a List to a comma separated string.
C# Program to Convert a List to a comma separated string Code:
private static void Main(string[] args)
{
IList strings = new List { "One", "Two", "Three", "Four", "Five" };
string result = string.Join(", ", strings);
Console.Write(result);
Console.ReadLine();
}
C# Program to Convert a List to a comma separated string Output: