Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# read single key

Console.WriteLine("Enter any Key: ");
ConsoleKeyInfo name = Console.ReadKey();
Console.WriteLine("You pressed {0}", name.KeyChar);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #single #key
ADD COMMENT
Topic
Name
3+1 =