字符串数组转换为整型数组

string [] str = deptid.Split(',');
int[] wxdepid = new int[str.Count()];
for(int i=0;i<wxdepid.Count();i++)
{
wxdepid[i] = Convert.ToInt32(str[i]);
}

posted @ 2015-09-22 11:30  皮皮木有小JJ  阅读(702)  评论(0编辑  收藏  举报