What is the best way to copy the contents of one stream to another? Is there a standard utility method for this?
MemoryStream has .WriteTo(outstream);
MemoryStream
.WriteTo(outstream);
and .NET 4.0 has .CopyTo on normal stream object.
.CopyTo
.NET 4.0:
instream.CopyTo(outstream);