use the Join() method to join strings : String : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » String »

 

use the Join() method to join strings








    
 

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

    
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» String