2 replies to this topic
#1
Posted 21 December 2011 - 02:32 AM
For int and char we use: int.Parse and char.Parse but why it is different for a "String"?
why we directly say: ch=Console.ReadLine();
thank you.
|
|
|
#2
Posted 21 December 2011 - 06:49 AM
Because int.Parse and char.parse are parsing a string as input. ReadLine() returns a string, so no need to parse it as a string.
#3
Posted 25 December 2011 - 06:39 AM
@WingedPanther
Thank you
Thank you
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









