Poehoe.Crypto.GetHexVal C# (CSharp) Method

GetHexVal() public static method

public static GetHexVal ( char hex ) : int
hex char
return int
        public static int GetHexVal(char hex)
        {
            int val = hex;
            return val - (val < 58 ? 48 : 55);
        }