||.NET Serialization, Part 1|
Response to: MemoryStream.Position
After writing to a stream, the position of the stream is at the end of the stream. If you try to immediatly read from the exact same stream, you will start to read from the end, where you left of writing. Therefore, you need to rewind the stream to the beginning before you read from it.