0

why cant we use explicit type conversion

int age=int.parse(Console.ReadLine());

26th Jun 2016, 2:29 PM
mani krishna
mani krishna - avatar
4 Respuestas
0
You can use.
26th Jun 2016, 4:09 PM
nitin sharma
nitin sharma - avatar
0
That code will work. it's just that, parse must start with capital 'P' it must be: int.Parse() Hope that solves it.
26th Jun 2016, 4:10 PM
Erwin Mesias
Erwin Mesias - avatar
0
thanks
26th Jun 2016, 4:14 PM
mani krishna
mani krishna - avatar
0
No Problem :)) You may also use: Convert.ToInt32(Console.ReadLine()); If you like :))
26th Jun 2016, 4:15 PM
Erwin Mesias
Erwin Mesias - avatar