How about this:
string g = "12 + 3";
string[] MyInts = g.Split('+');
ArrayList RealInts = new ArrayList();
for(int i = 0; i < MyInts.Lenght; i++){
RealInts.Add(Convert.ToInt32(((string)MyInts[i]).Trim());
}
At the end you should get an array list of integers.
RealInts[0] = 12;
RealInts[1] = 3;
If you want individual chars converted into ints then something like this should do it
string g = "12 + 3";
char [] MyInts = g.ToCharArray();
ArrayList RealInts = new ArrayList();
Foreach(char c in MyInts){
if(IsNumeric(c.ToString())){
RealInts.Add(Convert.ToInt32(c));
}
}
After this you should get something like this:
RealInts[0] = 1;
RealInts[1] = 2;
RealInts[2] = 3;