How can I convert ArrayList into string[] in C#?
ArrayList
string[]
using System.Linq; public static string[] Convert(this ArrayList items) { return items == null ? null : items.Cast() .Select(x => x == null ? null : x.ToString()) .ToArray(); }