Is it possible to stop the Console.ReadLine() programmatically?
Console.ReadLine()
I have a console application: the much of the logic runs on a different thread and in th
This will process a Ctrl+C in a seperate thread while your app is waiting for a Console.Readline():
Console.CancelKeyPress += (_, e) => { e.Cancel = true; Environment.Exit(0); };