تبدیل ورودی مبنای 16 (Hexadecimal) به مبنای 10 

decValue : مبنای 10
hexValue : مبنای 16

روش اول :


int decValue = int.Parse (hexValue , System.Globalization.NumberStyles.HexNumber);


روش دوم :


int decValue = Convert.ToInt32 (hexValue, 16);


تبدیل ورودی مبنای 10 (Decimal) به مبنای 16 


string hexValue = decValue.ToString("X");


منبع : StackOverflow.com