List<> convert to string[]
Listlist=new List ();string str=list.ToArray();
String[] convert to List<>
string[] str={ "str1","str2","str3"};Listlist=new List (str);
List<> convert to String
Listlist=new List ();string str=String.Join(";",list.ToArray());
Listlist=new List ();list.Add("test1");list.Add("test1");list.Add("test2");list.Add("test2");System.Collections.Generic.HashSet h = new System.Collections.Generic.HashSet (list);list.clear();list.AddRange(h);