摘要: string[] input = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };int[] output = Array.ConvertAll(input, delegate(string s) { return int.Parse(s); });注:使用Array类中的静态泛形式方法ConvertAll进行转换delegate(string s) { return 阅读全文
posted @ 2013-06-24 15:54 94cool 阅读(485) 评论(0) 推荐(0)