Para convertir en C# un objecto ArrayList, definido como:

ArrayList arrayList = new ArrayList();

en un arreglo de strings (string[]), solo se necesita:

string[] stringArray = (string[])arrayList.ToArray(typeof(string));

Tags: , ,



Leave a Comment


2 × = eight

  • Facebook
  • Google+
  • LinkedIn
  • Twitter
  • Flickr