ArrayList arrayList = GetArrayListOfInts();
List
//Can this be foreach be condensed into one line?
foreach (int number in arrayList)
{
intList.Add(number);
}
return intList;
Without Using Foreach
var list = arrayList.Cast
Without Using Foreach for .Net 2.0
List
No comments:
Post a Comment