I would like my console application to have commands like user types /help and console writes help. I would like it to use switch like:
switch (command)
{
case "/help":
Console.WriteLine("This should be help.");
break;
case "/version":
Console.WriteLine("This should be version.");
break;
default:
Console.WriteLine("Unknown Command " + command);
break;
}
How can I achieve this? Thanks in advance.
Console? That's the only thing you are missing, really. That, and a loop around the read and the switch.