title: Write and read data to the MemoryStream
body: <p>I am try to write some data to the <code>MemoryStream</code>, and then correctly read it. For example :</p>
  
  <pre><code>int someValue = 10;
  Console.WriteLine(someValue);
  Console.ReadKey();
  MemoryStream lMemoryStream = new MemoryStream();
  
  StreamWriter lStreamWriter = new StreamWriter(lMemoryStream);
  lStreamWriter.Write(someValue);
  
  StreamReader lStreamReader = new StreamReader(lMemoryStream);
  int someValue2 = lStreamReader.Read();
  Console.WriteLine(someValue2);
  Console.ReadKey();  
  </code></pre>
  
  <p>But in response I get empty memoryStream, and get value -1. What's wrong?</p>