Home

Stop or Cancel Console.ReadLine()

I am working on a long script that uses a Background Worker but needs Console.ReadLine() to read options. In some circumnstances I need to update the console output to display a different set of options.

I tried a trick published on StackOverflow to interrupt ReadLine() but used the version that works on Windows 10 which is my OS. But after many attempts I noticed that it does NOT work in LINQPad, apparently the LINQPad Waiting for Input can be interrupted this way.

Is there a trick to interrupt "Waiting for User Input" in LINQPad v6 x64?

Comments

Sign In or Register to comment.