Display the contents of StringBuilder : StringBuilder : String C# Examples


C# Examples » String » StringBuilder »

 

Display the contents of 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