替代Console.ReadLine()以保持控制台可见 [英] Alternative to Console.ReadLine() to keep the Console visible

查看:211
本文介绍了替代Console.ReadLine()以保持控制台可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是不是有一个更好的看说明书(或方式),以确保从控制台比的hackish到Console.ReadLine()调用消失。东西是更富有表现力的,更垂直,保持控制台中看到?

Isn't there a better looking statement (or way) to keep the console from disappearing than the hackish Console.ReadLine() call. Something that's more expressive of the purpose of, more orthogonal to, keeping the Console visible ?

推荐答案

如果你仍然在开发应用程序,您的目的可以通过按Ctrl + F5运行(不调试)
否则,你可以使用Console.ReadKey()(相同的,但没有更多的选择)

If you are still developing application you can run via Ctrl + F5 (Without debugging) otherwise you can use Console.ReadKey() (same but there is no more option)

这篇关于替代Console.ReadLine()以保持控制台可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆