Use the Remove() method to remove part of StringBuilder : StringBuffer StringBuilder : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » StringBuffer StringBuilder »

 

Use the Remove() method to remove part of StringBuilder









    


using System;
using System.Text;
   
class Test {
  public static void Main() {
    StringBuilder myStringBuilder = new StringBuilder("1234567890abcdefghijklmnopqret");

    myStringBuilder.Remove(14, 7);
    Console.WriteLine("myStringBuilder = " + myStringBuilder);

  }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» StringBuffer StringBuilder