title: How to create and initialize an array with another array?
body: <p>To create and initialize an array with another array I currently do this:</p>
  
  <pre><code>void Foo( int[] a )
  {
      int[] b = new int[ a.Length ];
      for ( int i = 0; i &lt; a.Length; ++i )
          b[ i ] = a[ i ];
  
      // Other code ...
  }
  </code></pre>
  
  <p>Is there a shorter or more idiomatic way of doing this in C#?</p>
  
  <p>It will be great if this can be done in a single statement, like in C++:</p>
  
  <pre><code>vector&lt;int&gt; b( a );
  </code></pre>
  
  <p>If this cannot be done in a single statement, I will take what I get :-)</p>