title: StreamReader from MemoryStream
body: <p>I'm decoding csv-file from base64 string:</p>
  
  <pre><code>byte[] input;
  using (var ms = new MemoryStream())
  using (var cs = new CryptoStream(ms, new FromBase64Transform(), CryptoStreamMode.Write))
  using (var tr = new StreamWriter(cs))
  {
      tr.Write(data);
      tr.Flush();
      input = ms.ToArray();
  }
  </code></pre>
  
  <p>How to simply read decoded file by string?
  For example, similar way like how we can read a file from <code>HttpWebResponse</code> stream:</p>
  
  <pre><code>using (StreamReader input = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(1251), true))
  {
      while (!input.EndOfStream)
      {
           string row = input.ReadLine();
      }
  }
  </code></pre>