title: How to convert a sub-range of a byte array to a String in C#
body: <p>In java, you can build a String from a sub-range of a byte[]. How can we perform a similar operation in C#?</p>
  
  <p>Example java code:</p>
  
  <pre><code>byte[] buffer = ...
  int offset    = ...
  int length    = ...
  
  String str = new String(buffer, offset, length);
  </code></pre>