title: Clear Console Buffer
body: <p>I'm writing a sample console application in VS2008. Now I have a <code>Console.WriteLine()</code> method which displays output on the screen and then there is <code>Console.ReadKey()</code> which waits for the user to end the application. </p>
  
  <p>If I press <kbd>Enter</kbd> while the <code>Console.WriteLine()</code> method is displaying then the application exits. </p>
  
  <p>How can I clear the input buffer before the <code>Console.ReadKey()</code> method so that no matter how many times the user presses the Enter button while the data is being displayed, the <code>Console.ReadKey()</code> method should stop the application from exiting?</p>