I have this array
char[] A = [\'1\', \'2\', \'3\', \'4\']
And I want to convert it to int[]
int[] Aint=[1, 2, 3, 4]
Please do Like this
char[] A = {'1', '2', '3', '4'}; int[] Aint = new int[A.Length]; for (int i = 0;i < A.Length;i++) { Aint[i] = Convert.ToInt32(A[i].ToString()); }