title: Splitting an array into 2 arrays C#
body: <p><strong>Edit: I have tried the Take/Skip method but I get the following error:</strong></p>
  
  <pre><code>Cannot implicitly convert type 'System.Collections.Generic.IEnumerable&lt;string&gt;' to   
  'string[]'. An explicit conversion exists (are you missing a cast?)
  </code></pre>
  
  <p><strong>I do not know what I am doing wrong because I copied Saeed's code.</strong></p>
  
  <p>I have a string array (containing anywhere from 20 to 300 items) and I want to split it into 2 separate arrays, from the middle of the first one.</p>
  
  <p>I know how I can do this using a for loop but I would like to know if there was a faster/better way of doing it. I also need to be able to correctly split an array even if it has an odd number of items, eg:</p>
  
  <pre><code>string[] words = {"apple", "orange", "banana", "pear", "lemon"};
  string[] firstarray, secondarray;
  SplitArray(words, out firstarray, out secondarray); // Or some other function
  // firstarray has the first 3 of the items from words, 'apple', 'orange' and 'banana'
  // secondarray has the other 2, 'pear' and 'lemon'
  </code></pre>