title: Convert Type Decimal to Hex (string) in .NET 3.5
body: <p>I am trying to convert a Decimal to Hex as a string. I've looked all over for a solution to this, but all I can find is Int or long to Hex. When using the code below I receive a "Format specifier was invalid" error.</p>
  
  <pre><code>    Decimal decValue = 18446744073709551615
      string hexValue = decValue.ToString("X");
  </code></pre>
  
  <p>I've also looked into converting the decimal to a byte array and then converting to Hex, but I'm coming up short on that also.</p>