C#中string[]数组和list<string>泛型的相互转换
C#中string[]数组和list<string>泛型的相互转换
从string[]转list<string>
string[] str={"1","2"};
list<string> list=new list<string>(str);
从list<string>转string[]
list<string> list=new list<string>;
string[] str=list.toarray();