csharp clear console read chache

Code Example - csharp clear console read chache

                
                        while(Console.KeyAvailable) 
{
    Console.ReadKey(true);
}