How to provide Console input to when running Linqpad?
Asked Answered
V

1

8

Within LinqPad I can use things like

Console.ReadKey(); 

OR

Util.ReadLine();

But how do you run these in such a way you can actually enter the input?

The UI doesn't have a console window!

Variola answered 11/9, 2020 at 5:57 Comment(2)
A black bar will appear at the bottom of the output window and you type into it. ReadKey can't be used, but Read or ReadLine work.Qumran
ReadKey does not work in LINQPad because ReadKey cannot be redirected: stackoverflow.com/questions/6880624Uglify
P
18

Using Util.ReadLine() gives you a black box at the bottom of the window to input your...input

enter image description here

Palm answered 24/9, 2020 at 19:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.