C#で16進数と10進数の変換をするにはどうすればいいですか?
と言えるようです。
Convert.ToInt64(value, 16)
と言えば、16進数から10進数を得ることができます。
その逆の場合は
otherVar.ToString("X");
// Store integer 182
int decValue = 182;
// Convert integer 182 as a hex in a string variable
string hexValue = decValue.ToString("X");
// Convert the hex string back to the number
int decAgain = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);