Hi Guys
NP122 return of Console.ReadLine()
I wish to know whether return of Console.ReadLine() method is always string date type.
Please explain.
Thank you
Hi Guys
NP122 return of Console.ReadLine()
I wish to know whether return of Console.ReadLine() method is always string date type.
Please explain.
Thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Aug 13, 2008, 5:18 PM
Yes, it always returns a string.
This type was chosen (rather than System.Object) because anything that can be typed in at the console must have a string representation.
Posted Aug 13, 2008, 5:24 PM
Thank you for your confirmation.