how to clear input buffer in c# code example
Example: C# clear console input buffer
while(Console.KeyAvailable)
{
Console.ReadKey(false); // true = hide input
}
Console.ReadKey();
while(Console.KeyAvailable)
{
Console.ReadKey(false); // true = hide input
}
Console.ReadKey();