逗号分隔的字符串转数组
var deviceVarID=“1,2,3,4”;
//string[] strArray = deviceVarID.Split(',');
string数组转int数组
//int[] ids = new int[] { };
//ids = Array.ConvertAll<string, int>(strArray, s => int.Parse(s));
逗号分隔的字符串转数组
var deviceVarID=“1,2,3,4”;
//string[] strArray = deviceVarID.Split(',');
string数组转int数组
//int[] ids = new int[] { };
//ids = Array.ConvertAll<string, int>(strArray, s => int.Parse(s));