StringBuilder : StringBuilder : String C# Examples


C# Examples » String » StringBuilder »

 

StringBuilder









    
using  System;
using  System.Collections.Generic;
using  System.Globalization;
using  System.IO;
using  System.Text;
using  System.Security.Cryptography;

public  class  MainClass
{
        public  static  void  Main()
        {
                StringBuilder  sb  =  new  StringBuilder("Foo");
                sb.AppendFormat("...{0}",  DateTime.Now);

                string  final  =  sb.ToString();
                Console.WriteLine(final);
        }
}
    
   
  
   



Output

Foo...25/03/2007 3:03:25 PM


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» StringBuilder