17-10-12, 05:53 PM
كاتب الموضوع : Boutemine Oualid
السلام عليكم و رحمة الله و بركاتهكود :
// Hexadecimal to Decimal
public static int HexToDec(string hexValue)
{
return Int32.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);
}
// Decimal to Hexadecimal
public static string DecToHex(int decValue)
{
return string.Format("{0:x}", decValue);
}
string hex = DecToHex(15);
int dec = HexToDec("f");