string[] 转int[] 的方法
摘要:首先感谢群里一位兄弟老A,让我更加熟悉了string[] 转int[] 方法。废话不多说,直接贴代码:背景:string[] listString = new string[] { "1", "2", "3" };方法1-迭代: int[] c = new int[listString.Length]; 09 for(int i = 0; i < listString.Length; i++) { 10 c[i] = Convert.ToInt32(listString[i].ToString()); 11 } 12 retur
阅读全文
posted @ 2013-05-10 12:19
浙公网安备 33010602011771号