//add a ArrayList myArray
ArrayList myArray = new ArrayList();
//add some value to myArray
myArray.Add(fname);
//using ToArray assing value to new string[] arr
string[] arr = (string[])myArray.ToArray(Type.GetType("System.String"));
文章標籤
全站熱搜
留言列表