简体   繁体   English

C#Interactive Console.Readkey()挂起

[英]C# Interactive Console.Readkey() hangs

When I type Console.Readkey() on the C# interactive window on Visual Studio 2015, it just hangs (typing any number of characters does not seem to do anything). 当我在Visual Studio 2015上的C#交互式窗口上键入Console.Readkey()时,它只是挂起(键入任意数量的字符似乎没有做任何事情)。 Is this an incorrect setting or am I not understanding how the Interactive Window works with the Console? 这是不正确的设置还是我不了解交互式窗口如何与控制台一起使用?

c#interactive目前不支持重定向输入,因此如果您使用任何Console.Read方法它只会冻结,您可以通过单击重置按钮来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM