title: Hex Variables in C#
body: <p>Part of my code snippet is found below:</p>
  
  <pre><code>Byte[] blockdata = new Byte[16];
  blockdata[0] = 0x12;
  blockdata[1] = 0x13;
  blockdata[2] = 0x14;
  </code></pre>
  
  <p>Alright.  The 12 in <code>(0x12)</code> is fixed.  What if I want to use a variable for it?
  Example:</p>
  
  <pre><code>int m = 12;
  blockdata[0] = 0xm;
  </code></pre>
  
  <p>In the above, <code>m</code> is supposed to be <code>12</code>. How will I do that?</p>
  
  <p>Help me please. Thanks.</p>