I have this array
char[] A = [\'1\', \'2\', \'3\', \'4\']
And I want to convert it to int[]
int[] Aint=[1, 2, 3, 4]
A little bit of Linq should do the trick:
int[] Aint = A.Select(c => c - 48).ToArray(); // or c - '0'