I have the following:
class Program {
static void Main(string[] args) {
}
}
Is there a simple way that I can make this wait for a key to be pressed and then call a function. For example: call function funcA() if an “a” is pressed, funcB() if a “b” is pressed or exit if an “e” is pressed?
you use this code
Console.ReadKey();