How to find out TextWriter instance is a Console?
<p>I have an instance of System.IO.TextWriter. It may be passed in from System.Console.  Any way to find out it is Console without causing exception? I tried this but not compiled:</p>

<pre><code>   if (_myWriter as System.Console != null ) // error compiling
</code></pre>

<p>I guess I have to use type checking instead of boxing?</p>
