Sunday, April 17, 2005
ArrayList.ToArray Method
In order to convert an ArrayList collection to a regular array do the following. (Say you have an ArrayList object called someArrayList and you want to convert it to an array of ints)
int[] intArray = (int[]) someArrayList.ToArray(typeof(int));I got this help from http://www.lazycoder.com/weblog/arraylisttoarray/