Rathrola Prem Kumar
How to convert 2222 into hexadecimal or 5GH convert into number?
By Rathrola Prem Kumar in .NET on Jan 07 2017
  • Rathrola Prem Kumar
    Jan, 2017 7

    int intValue = 2222; // Convert integer 182 as a hex in a string variable string hexValue = intValue.ToString("X"); // Convert the hex string back to the number int intAgain = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);

    • 0