Converting a string to hexadecimal

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,

I need to convert a simple string such as "12", to hexadeciaml. What
method should I use, because I can't find the correct one?

Can someone help me out.
Thanks in Advance
 
int hexCandidate = 12;
string hexadecimalString = hexCandidate.ToString("X");
or
string hexadecimalString = hexCandidate.ToString("x");

try both and see difference...
 
Back
Top