Getting a char[] from a string : Chars in String : String C# Examples


C# Examples » String » Chars in String »

 

Getting a char[] from a string









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

public  class  MainClass
{
        public  static  void  Main()
        {
                string  s  =  "Hello,  World.";

                char[]  c1  =  s.ToCharArray();
                char[]  c2  =  s.ToCharArray(0,  5);
        }

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo String
» Chars in String