0
System.Convert does not recognize Tolnt32
when trying to use Convert.Tolnt32(x); in the playground, I keep getting an error message, the same one in the heading. Is this a bug on my part or do I have to do something so that the System recognized Tolnt32?
1 Answer
0
Hi Playjoy
Try this:
string x = "10";
int y;
y = Convert.ToInt32(x);
Console.Write(y);
I hope it helps.