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);
probably the most compact solution is this:
Enumerable.Range(0, list.Count).Select(i => list[i]).ToArray();