char typeClient = \' \';
bool clientValide = false;
while (!clientValide)
{
Console.WriteLine(\"\\nEntrez le type d\'employé (c ou g) : \");
clientValide = cha
You can use ConsoleKeyInfo with Console.ReadKey() :
ConsoleKeyInfo keyInfo;
do {
Console.WriteLine("\nEntrez le type d'employé (c ou g) : ");
keyInfo = Console.ReadKey();
} while (keyInfo.Key != ConsoleKey.C && keyInfo.Key != ConsoleKey.G);