c#中从string数组转换到int数组
引爆你的博客,程序开发,源代码下载,.net,数据库,Access,SqlServer,Google博客优化,费空间免费域名
string[] input = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; int[] output = Array.ConvertAll<string, int>(input, delegate(string s){ return int.Parse(s); });
0 评论:
发表评论