How can i assign to the ConsoleKeyInfo

后端 未结 0 1118
[愿得一人]
[愿得一人] 2021-01-27 16:25

How can i assign Enter key to the ConsoleKeyInfo ? (in C#) Like this:

ConsoleKeyInfo key;
if(read_mode)
{
   key = Console.ReadKey(true);
}
else
{
   (Ex. key = E         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题