How can I convert ArrayList
into string[]
in C#?
| ||||
feedback
|
| |||||||
feedback
|
| |||||||||||
feedback
|
use .ToArray(Type)
| |||
feedback
|
Try do that with
| ||||
feedback
|
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) | |||
feedback
|
A simple Google or search on MSDN would have done it. Here:
| |||
feedback
|