1、从System.String[]转到List
System.String[] str={"str","string","abc"};
List listS=new List(str);
2、从List转到System.String[]
List listS=new List();
listS.Add("str");
listS.Add("hello");
System.String[] str=listS.ToArray();
3、List>转string
System.String[] str={"str","string","abc"};
List listS=new List(str);
2、从List转到System.String[]
List listS=new List();
listS.Add("str");
listS.Add("hello");
System.String[] str=listS.ToArray();
3、List>转string
string dest = string.Join("",listS
);
来自网址:
http://www.51res.net/html/2004/0414/32543.html
来自网址:
http://www.51res.net/html/2004/0414/32543.html