title: Are double[] GenerateArray() and void GenerateArray(ref double[]) the Same
body: <p>Whenever c++ returns an object, all of the contents of the objects are copied to the new object once the method is returned, but in C# there is no such thing, AFAIK.</p>
  
  <p>My question is, in C#, are the below two equivalent in terms of speed and memory consumption?</p>
  
  <pre><code>double[] GenerateArray()
  </code></pre>
  
  <p>and</p>
  
  <pre><code>void GenerateArray(ref double[] result)
  </code></pre>