String removes from start index to end index : String Remove : String C# Examples


C# Examples » String » String Remove »

 

String removes from start index to end index









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



Output

Original string: This is a test
This test


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» String Remove