Use the Append() method to append a substring to StringBuilder : StringBuilder : String C# Examples


C# Examples » String » StringBuilder »

 

Use the Append() method to append a substring to StringBuilder









    
using  System;
using  System.Text;

class  MainClass
{
    public  static  void  Main()
    {
        StringBuilder  myStringBuilder  =  new  StringBuilder();
        
        myStringBuilder.Append("myString");
        
        
        myStringBuilder.Append("Here's  another  string",  0,  4);



        Console.WriteLine(myStringBuilder);
    }
}
    
   
  
   



Output

myStringHere


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» StringBuilder