Returning memory stream from function
<p>In your opinions, is it better to return a newly allocated memory stream from a function, or pass it into the function?  For instance,</p>

<pre><code>void Foo(MemoryStream m) 
{ 
   m.Write(somebuffer, 0, somebuffer.Length); 
}
</code></pre>

<p>or</p>

<pre><code>void MemoryStream Foo()
{
    MemoryStream retval = new MemoryStream();
    retval.Write(somebuffer, 0, somebuffer.Length);
    return retval;
}
</code></pre>
