Ejemplo n.º 1
0
        public static byte HexToByte(string input)
        {
            byte c0 = CharUtils.HexToNibble(input[0]);

            c0 = (byte)(c0 << 4);
            byte c1 = CharUtils.HexToNibble(input[1]);

            return((byte)(c0 | c1));
        }
Ejemplo n.º 2
0
 public static byte HexToNibble(string input)
 {
     return(CharUtils.HexToNibble(input[0]));
 }