Search
 
SCRIPT & CODE EXAMPLE
 

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);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# parse string to xml 
Csharp :: recursive reverse linked list 
Csharp :: get current time c# 
Csharp :: Gameobject.Find in unityC# 
Csharp :: byte array to base64 c# 
Csharp :: webclient timeout 
Csharp :: create list in c# 
Csharp :: c# if statement 
Csharp :: rigidbody velocity c# unity 
Csharp :: sleep in c# 
Csharp :: unity get default font 
Csharp :: lcm of list of number 
Csharp :: ffmpeg add audio to video at specific time 
Csharp :: how to make a character run in unity 
Csharp :: mfind how many digits a number has c# 
Csharp :: unity image 
Csharp :: orElseThrow 
Csharp :: c# calculate sum of list 
Csharp :: increase value in dictionary against a key in c# 
Csharp :: methods c# 
Csharp :: c# template 
Csharp :: how to close a form c# 
Csharp :: how to destroy parent gameobject unity 
Csharp :: list min and Max value in c# 
Csharp :: add spaces in string 
Csharp :: meaning of ??= in c# 
Csharp :: difference between awake and start unity 
Csharp :: how to create function in c# 
Csharp :: c# split string by index 
Csharp :: rigidbody.addforce not working 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =