Wednesday 19 August 2015

What is Namespace of StringBuilder

 Namespace of StringBuilder : System.text
  
   Example of the StringBuilder :

                Public class demo
                     {
                            public static void main()
                            {

                            StringBuilder  sb = new StringBuilder ();

                           
                               for(int i=1; i <=10 ; i++)
                                {
                                  Console.Write( sb.Add(i) + " ");                            
                                }                      
                     }

No comments:

Post a Comment