StringBuilder Insert() : StringBuffer StringBuilder : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » StringBuffer StringBuilder »

 

StringBuilder Insert()









    


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

    myStringBuilder.Insert(6, "friends, ");
    myStringBuilder.Insert(2, "Romans, ", 3);
    Console.WriteLine("myStringBuilder = " + myStringBuilder);
  }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» StringBuffer StringBuilder