string str="1,1,1,1,2,5,4";
List<int> list= str.Split(',').Select<string, int>(x => Convert.ToInt32(x)).ToList();
string str="1,1,1,1,2,5,4";
List<int> list= str.Split(',').Select<string, int>(x => Convert.ToInt32(x)).ToList();
List<string> strlist = list.Select<int, string>(x => x.ToString()).ToList();
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |