1. 程式人生 > >List和string[]轉換

List和string[]轉換

System.String[] str={"str","string","abc"};

List<System.String> listS=new List<System.String>(str);



System.String[] str=(new List<string>).ToArray();