-3
As it cancels an action, the code below is only one example:
Console.WriteLine("Digite algo");
string text = Console.ReadLine();
switch (){
case "comando": // > Aqui seria para cancelar com a tecla ESC, e voltar para a primeira > linha do código
Console.WriteLine("Digite algo");
Console.ReadLine();
Console.WriteLine("Digite outra coisa");
Console.ReadLine();
}
There are several forms, only with this section it is difficult to help, you have to see how you are doing. Actually I don’t even know if it’s clear what you want in detail. The best way depends on the details.
– Maniero
In case it would just cancel the case, and return to the Console.Writeline("Type something"); that’s it
– Leonardo Araujo
Set cancel the
case. programming is detail, if you do not provide details it becomes difficult to help.– Maniero
Type, user entered "command" unintentionally on the console, then he wants to re-enter another case, then would have to cancel for him to type.
– Leonardo Araujo
@Leonardoaraujo The execution will end before the user can type the "cancel command".
– Jéf Bueno