Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert a List to a String

using System;
using System.Collections.Generic;
 
public class Example
{
    public static void Main()
    {
        List<string> list = new List<string>() { "A", "B", "C" };
        char delim = ',';
 
        string str = String.Join(delim, list);
        Console.WriteLine(str);
    }
}
 
/*
    Output: A,B,C
*/
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #Convert #List #String
ADD COMMENT
Topic
Name
6+7 =