Cast object array to string array : Array Cast : Data Structure C# Examples


C# Examples » Data Structure » Array Cast »

 

Cast object array to string array









    
public  class  MainClass
{
        static  void  Main()  {
                string[]  names  =  new  string[4];
                object[]  objects  =  names;

                string[]  originalNames  =  (string[])  objects;
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Structure
» Array Cast