تبدیل hexadecimal به Integer و بالعکس (C#)
تبدیل ورودی مبنای 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");
+ نوشته شده در پنجشنبه یکم تیر ۱۳۹۱ ساعت 22:36 توسط MEC
GENERAL INFORMATION