title: How to asynchronously read the standard output stream and standard error stream at once
body: <p>I want to read the ouput of a process in the form as is in a console (standard output is blended with standard error in one stream). Is there a way how to do it?</p>
  <p>I was thinking about using</p>
  <pre><code>ProcessStartInfo.UseShellExecute = true;  
  </code></pre>
  <p>but then I cannot read asynchronously the output. If I set</p>
  <pre><code>process.ProcessStartInfo.UseShellExecute = false;  
  process.StartInfo.RedirectStandardOutput = true;
  process.OutputDataReceived += new DataReceivedEventHandler(partialOutputHandler);
  </code></pre>
  <p>then I can read standard output (I can do the same for standard error) but I don't know how to simulate the behavior of console (the blending of stdout and stderr).</p>
  <p>This is similar to Linux which has the feature of redirecting standard error stream to the standard output stream; how?</p>