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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AlanRank #669 · 3.6K reputationPosted Aug 13, 2008, 1:18 PM EDT
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, 1:24 PM EDT
Thank you for your confirmation.