title: how to take all array elements except last element in C#
body: <p>I have a string array like this.</p>
  
  <p><code>string[] queries</code> with data more than one string.</p>
  
  <p>I want to skip the last string from the element and take the remaining. I have come up with</p>
  
  <pre><code>var remStrings = queries.Reverse().Skip(1).Take(queries.Length - 1);
  </code></pre>
  
  <p>Is there a better alternative to this?</p>