I am looking for the built-in equivalent of this function:
public static string ask(string prompt) {
Console.Write(prompt);
return Console.ReadLine();
}
I think it is tedious to copy-paste this in every console app, and creating a new class / module just for this tiny utility seems overkill.
I ask because the Google search: c# ask for input and print message in the same line of code does not give me any meaningful results.