Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

joins List of strings

using System;
using System.Collections.Generic;

class Program
{
    static void Main()
    {
        // Create a List of 3 strings.
        var list = new List<string>() { "cat", "dog", "rat" };
        // Join the strings from the List.
        string joined = string.Join<string>("*", list);
        // Display.
        Console.WriteLine(joined);
    }
}
 
PREVIOUS NEXT
Tagged: #joins #List #strings
ADD COMMENT
Topic
Name
8+2 =