title: How to compare two arrays of bytes
body: <p>I have two byte arrays with the exact same content. I tried:</p>
  
  <pre><code>if (bytearray1 == bytearray2) {...} else {...}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if (Array.Equals(bytearray1, bytearray2)) {....} else {...}
  </code></pre>
  
  <p>All time it goes to the else! I don't know why! I checked both arrays manually several times!!!</p>