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

Hadoop - How to setup a Hadoop Cluster

Below is a step-by-step guide which I had used to setup a Hadoop Cluster Scenario 3 VMs involved: 1) NameNode, ResourceManager - Host...