See the code sample below. I need the ArrayList
to be a generic List.
ArrayList arrayList = GetArrayListOfInts();
List<int> intList = new List<int>();
//Can this be foreach be condensed into one line?
foreach (int number in arrayList)
{
intList.Add(number);
}
return intList;