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
This is inefficient (it makes an intermediate array unnecessarily) but is concise and will work on .NET 2.0:
List newList = new List(arrayList.ToArray(typeof(int)));