Console.ReadLine();
or
Console.ReadKey();
ReadLine()
waits for ↩, ReadKey()
waits for any key (except for modifier keys).
Edit: stole the key symbol from Darin.
Related Contents:
- Opening a text file is passed as a command line parameter [closed]
- Can’t specify the ‘async’ modifier on the ‘Main’ method of a console app
- How can I get the application’s path in a .NET console application?
- How to write Unicode characters to the console?
- Why is the console window closing immediately once displayed my output?
- How to cancel Task await after a timeout period
- Listen for key press in .NET console app
- .NET Global exception handler in console application
- How do I show a console output/window in a forms application?
- Show/Hide the console window of a C# console application
- Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)
- Hide console window from Process.Start C#
- how to run a winform from console application?
- .NET console application as Windows service
- Custom text color in C# console application?
- How to run a C# console application with the console hidden
- Global hotkey in console application
- How to run console application from Windows Service?
- Why does closing a console that was started with AllocConsole cause my whole application to exit? Can I change this behavior?
- How can I write fast colored output to Console?
- How to run a .NET console application in the background
- Displaying Arabic characters in C# console application
- Command to close an application of console?
- Password masking console application
- Why the default SynchronizationContext is not captured in a Console App?
- How to programmatic disable C# Console Application’s Quick Edit mode?
- How to display list items on console window in C#
- How to keep console window open
- How to receive Plug & Play device notifications without a windows form
- C# arrow key input for a console app
- Strange behaviour of Console.ReadKey() with multithreading
- How to navigate a few folders up?
- Console App Mouse-Click X Y Coordinate Detection/Comparison
- Non-Blocking read from standard I/O in C# [closed]
- Error-Attempt by method ‘X.set_DbConnection(System.Data.Common.DbConnection)’ to access method ‘Y.get_Settings()’ failed
- ThreadPool not starting new Thread instantly
- Why does computing factorial of relatively small numbers (34+) return 0?
- Download multiple files async and wait for all of them to finish before executing the rest of the code
- Is there a way to make a console application run using only a single file in .NET Core?
- How do I only allow number input into my C# Console Application?
- Console.Read() and Console.ReadLine() problems [duplicate]
- How can a C# Windows Console application tell if it is run interactively
- How to fix “No overload for method ‘ ‘ takes 0 arguments”?
- ASP.NET Core configuration for .NET Core console application
- What is App.config in C#.NET? How to use it?
- Can you get the column names from a SqlDataReader?
- C# Reflection – Get field values from a simple class
- ASP.NET Identity – Multiple object sets per type are not supported
- Comparison of XSD Code Generators [closed]
- Visual Studio – project shows up as “Miscellaneous Files”