Converting Array to ArrayList:
ArrayList fileArrayList = = new ArrayList();
string[] files = Directory.GetDirectories(path)
fileArrayList.AddRange(files);
Converting ArrayList to Array:
ArrayList fileArrayList = new ArrayList();
//Populate fileArrayList
…
string[] files = (string[])fileArrayList.