I want to convert IList to array: Please see my code:
IList list = new ArrayList(); list.Add(1); Array array = new Array[list.Count]; list.CopyTo(array, 0);
You can use Cast and ToArray:
Array array = list.Cast().ToArray();