//int 数组转string数组int [] test={1,2,3,4};string result=test.Selec极速赛车买前5名的方法st={1,2,3,4};string result=test.Select(i => i.ToString()).ToArray();//int 数组转 string中间用逗号隔开int [] test={1,2,3,4};string result=string.Empty;for (int i = 0; i < test.length; i++){ if(i==test.length-1) result=test[i].ToString(); else result=test[i]+",";}
转载于:https://www.cnblogs.com/xy0710/p/5717518.html