use the Join() method to join strings

image_pdfimage_print
   
 

using System;

class MainClass {

    public static void Main() {

        string[] myStrings = {"To", "be", "or", "not","to", "be"};
        string myString9 = String.Join(".", myStrings);
        Console.WriteLine("myString9 = " + myString9);

    
    }
}

    


This entry was posted in Data Types. Bookmark the permalink.