Friday, November 13, 2009

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);

No comments:

Post a Comment

Oracle - Reclaim disk space

Oracle does not release disk space even if you had delete the data or tablespace. If you have enterprise manager, you should use it to  rec...