C# - Convert Int to Hex String

To convert Integer to Hex String and visa versa is simple

Integer to Hex



int a = 1;
String hex = a.ToString("X");




Hex to Integer



int a = int.Parse(hex,
System.Globalization.NumberStyles.HexNumber);

Comments

Popular Posts