var strText='1,2,3,4'
int[] strArr; strArr = Array.ConvertAll<string, int>(strText.Split(',').ToArray(), s => int.Parse(s));