I am trying to convert hex string into binary. My code looks as follows:
sw.Write(Convert.ToString(Convert.ToInt32(value, 16), 2));
However this works for most of the values; But when I convert hex string 0x101 to binarystring, my result is 100000001, rathen than 000100000001. Please help me.
if I have Hex = 001. IsHexan integer or string?