How can I convert the following?
2934 (integer) to B76 (hex)
Let me explain what I am trying to do. I have User IDs in my database that are stored as inte
int to hex:
int a = 72; Console.WriteLine("{0:X}", a);
int a = 72;
Console.WriteLine("{0:X}", a);
hex to int:
int b = 0xB76; Console.WriteLine(b);
int b = 0xB76;
Console.WriteLine(b);