String Inserting : String Insert Replace : String C# Examples


C# Examples » String » String Insert Replace »

 

String Inserting









    
using  System;    
    
class  MainClass  {    
    public  static  void  Main()  {    
        string  str  =  "This  test";  
  
        Console.WriteLine("Original  string:  "  +  str);  
          
        //  Insert  
        str  =  str.Insert(5,  "is  a  ");  
        Console.WriteLine(str);  
  
    }  
}
    
   
  
   



Output

Original string: This test
This is a test


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» String Insert Replace