C# clear console input buffer

101

C# clear console input buffer -

while(Console.KeyAvailable) 
{
    Console.ReadKey(false); // true = hide input
}
Console.ReadKey();

Comments

Submit
0 Comments