Is there a way to write a message inside of Console.ReadLine()
Like:
Console.ReadLine("What is your name: ");
No, the only way is to write a message before reading a line. Use Console.Write()
instead of Console.WriteLine()
to prevent outputting a newline.
Console.Write("What is your name: ");
string name = Console.ReadLine();