title: How to convert part of a char array to a string
body: <p>I want to convert part of a char array to a string.  What is the best way to do that.</p>
  
  <p>I know I can do the following for the whole array</p>
  
  <pre><code>char[] chars = {'a', ' ', 's', 't', 'r', 'i', 'n', 'g'};
  string s = new string(chars);
  </code></pre>
  
  <p>but what about just elements 2 to 4 for example?</p>
  
  <p>I also know I can loop through the array and extract them, but I wondered if there was a more succinct way of doing it.</p>