Append strings using Concat() : String Concat : String C# Examples


C# Examples » String » String Concat »

 

Append strings using Concat()









    
using  System;  
  
class  MainClass  {  
    public  static  void  Main()  {  
  
        string  result  =  String.Concat("This  ",  "is  ",  "a  ",  
                                                                    "test  ",".");  
  
        Console.WriteLine("result:  "  +  result);  
  
    }  
}
    
   
  
   



Output

result: This is a test .


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» String Concat