Answers for "joins List of strings"

C#
0

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);
    }
}
Posted by: Guest on February-09-2022

Code answers related to "joins List of strings"

C# Answers by Framework

Browse Popular Code Answers by Language