I am trying to populate an ArrayList using the elements from a DataTable. I know I could do this using Loop, but I am trying to figure out how to using AddRange.
Here's my code:
SomeArrayList.AddRange(SomeDataTable.Rows.Item(0).ItemArray)
The problem is that I can pass the collection except for the Zeroth element.
This is the collection I am trying to pass to the ArrayList:
1. Dog
2. Cat
3. Bird
This is what I got
1. Cat
2. Bird