C#: Check if any key was pressed in Console

前端 未结 3 1078
野性不改
野性不改 2020-12-16 14:29

Both Console.Read() and Console.ReadKey() seem to wait for a key to be pressed. How can I detect if anything was pressed without actually asking fo

3条回答
提交回复
热议问题