title: How to detect if Console.In (stdin) has been redirected?
body: <p>I want to write a console application that have a different behavior depending if the input is coming from keyboard or from, say, a file.</p>
  
  <p>Is it possible? What's the most elegant way to do it in C#?</p>