Below code will convert List to Array.
- List<string> lst = new List<string>();
- lst.Add("abc");
- lst.Add("abc");
- lst.Add("abc");
- lst.Add("abc");
- lst.Add("abc");
- //Method1
- string[] the_array = lst.Select(i => i.ToString()).ToArray();
- //Method 2
- string[] array = lst.ToArray();