Home
Manage Your Code
Snippet: Convert ArrayList to string[] (C#)
Title: Convert ArrayList to string[] Language: C#
Description: Given an ArrayList of strings, here's how to convert it to a string array: Views: 4907
Author: Eric Liew Date Added: 9/22/2008
Copy Code  
1/*
2 Convert ArrayList to string[]
3 -
4 Given an ArrayList of strings, here's how to convert it to a string array:
5*/
6
7string[] srtArray = arrList.ToArray(Type.GetType("System.String")) as string[];