title: C# ByteArray to string conversion and back
body: <p>I have a uint value that I need to represent as a ByteArray and the convert in a string.
  When I convert back the string to a byte array I found different values.
  I'm using standard ASCII converter so I don't understand why I'm getting different values.
  To be more clear this is what I'm doing:</p>
  
  <pre><code>byte[] bArray = BitConverter.GetBytes((uint)49694);
  string test = System.Text.Encoding.ASCII.GetString(bArray);
  byte[] result = Encoding.ASCII.GetBytes(test);
  </code></pre>
  
  <p>The bytearray result is different from the first one:</p>
  
  <p>bArray -></p>
  
  <pre><code>[0x00000000]: 0x1e
  [0x00000001]: 0xc2
  [0x00000002]: 0x00
  [0x00000003]: 0x00
  </code></pre>
  
  <p>result -></p>
  
  <pre><code>[0x00000000]: 0x1e
  [0x00000001]: 0x3f
  [0x00000002]: 0x00
  [0x00000003]: 0x00
  </code></pre>
  
  <p>Notice that the byte 1 is different in the two arrays.</p>
  
  <p>Thanks for your support.</p>
  
  <p>Regards</p>