title: How to tell if there is a console
body: <p>I've some library code that is used by both console and WPF apps.  In the library code, there are some <code>Console.Read()</code> calls.  I only want to do those input reads if the app is a console app not if it's a GUI app - how to tell in the dll if the app has a console?</p>