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 from this blog

FFMPEG - Creating timelapse with FFMPEG with JPEG

MP4 File Format Part 1

RTSP - RTP over TCP