How can I convert ArrayList
into string[]
in C#?
|
|
|||||||
|
A simple Google or search on MSDN would have done it. Here:
|
|||
|
|
|||||||||||
|
use .ToArray(Type)
|
|||
|
You can use CopyTo method of ArrayList object. Let's say that we have an arraylist, which has String Type as Elements. strArrayList.CopyTo(strArray) |
|||
|
Try do that with
|
||||
|