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?

5th Aug 2016, 6:21 AM
Playjoy “Kungpoww” Of Death
Playjoy “Kungpoww” Of Death - avatar
1 Answer
0
Hi Playjoy Try this: string x = "10"; int y; y = Convert.ToInt32(x); Console.Write(y); I hope it helps.
6th Aug 2016, 2:24 PM
Ricardo Pucca
Ricardo Pucca - avatar