title: C# Replace bytes in Byte[]
body: <p>What is the best way to replace some bytes in a byte array??</p>
  
  <p>For instance i have <code>bytesFromServer = listener.Receive(ref groupEP);</code> and i can do <code>BitConverter.ToString(bytesFromServer)</code> to convert it into a readable format to return something along the lines of</p>
  
  <pre><code>48 65 6c 6c 6f 20 
  74 68 65 72 65 20 
  68 65 6c 70 66 75 
  6c 20 70 65 6f 70 
  6c 65   
  </code></pre>
  
  <p>I would like to replace something inside of that making "68 65 6c" to something like "68 00 00" (just as an example). There is not .Replace() on a byte[].</p>
  
  <p>Would there be an easy way to convert that back into a byte[]?</p>
  
  <p>Any help appreciated. Thank you!</p>