Concatenate string with integers : String Concat : String C# Examples


C# Examples » String » String Concat »

 

Concatenate string with integers









    
using  System;    

class  MainClass  {    
    public  static  void  Main()  {    
    
        string  result  =  String.Concat("The  value  is  "  +  19);  
        Console.WriteLine("result:  "  +  result);    
  
    }    
}
    
   
  
   



Output

result: The value is 19


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» String Concat