I'm trying to write new stream from string and i can't figure out why my
memory stream
instance is null after i have writen to it with stream writer.
Here is an example.
MemoryStream stream = new MemoryStream();
StreamWriter writer = new StreamWriter();
writer.Write ("my string");
at this point i check what does my stream contain and it says .Length = 0
so why is that ? How can it be 0 if i've just written to it with writer ?