在Visual Basic中将字符串转换为int数组?
答
首先用逗号分隔字符串作为分隔符,然后将该结果数组中的每个元素转换为整数。
Dim ints = Array.ConvertAll("1,2,5,8".Split(","c), AddressOf Convert.ToInt32)