title: Convert String to System.IO.Stream
body: <p>I need to convert a String to System.IO.Stream type to pass to another method.</p>
  
  <p>I tried this unsuccessfully.</p>
  
  <pre><code>Stream stream = new StringReader(contents);
  </code></pre>