将List 转换为用逗号连接为字符串

                List<int> testList = new List<int>() { 100, 0, 1, 2, 3 };





                string str = String.Join(",", testList.ConvertAll<string>(new Converter<int, string>(m => m.ToString())).ToArray());
View Code

给大家推荐一个网址,

就是广告太多····(⊙o⊙)…

http://www.cftea.com/c/2011/09/URST4ZCYMZ5AO0O8.asp

你可能感兴趣的:(list)