See the code sample below. I need the ArrayList to be a generic List. I don\'t want to use foreach.
ArrayList
foreach
ArrayList arrayList = GetArra
Try the following
var list = arrayList.Cast().ToList();
This will only work though using the C# 3.5 compiler because it takes advantage of certain extension methods defined in the 3.5 framework.