use the addition operator (+) to concatenate strings : String : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » String »

 

use the addition operator (+) to concatenate strings








    
 

using System;

class MainClass {

    public static void Main() {
        
        string myString6 = "To be, " + "or not to be";
        Console.WriteLine("\"To be, \" + \"or not to be\" = " + myString6);
    
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» String