title: Suppress 3rd party library console output?
body: <p>I need to call a 3rd party library that happens to spew a bunch of stuff to the console.  The code simply like this...</p>
  
  <pre><code>int MyMethod(int a)
  {
     int b = ThirdPartyLibrary.Transform(a);  // spews unwanted console output
     return b;
  }
  </code></pre>
  
  <p>Is there an easy way to suppress the unwanted console output from ThirdPartyLibrary?  For performance reasons, new processes or threads cannot be used in the solution.</p>